Fix entire collection being used to calculate weights

This commit is contained in:
Damien Elmes 2023-09-24 19:33:51 +10:00
parent 2ab8aa002e
commit c788f8ac8a

View file

@ -52,7 +52,9 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
try { try {
await runWithBackendProgress( await runWithBackendProgress(
async () => { async () => {
const search = customSearch ?? `preset:"${state.getCurrentName()}"`; const search = customSearch
? customSearch
: `preset:"${state.getCurrentName()}"`;
const resp = await computeFsrsWeights({ const resp = await computeFsrsWeights({
search, search,
}); });