mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Fix entire collection being used to calculate weights
This commit is contained in:
parent
2ab8aa002e
commit
c788f8ac8a
1 changed files with 3 additions and 1 deletions
|
@ -52,7 +52,9 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||
try {
|
||||
await runWithBackendProgress(
|
||||
async () => {
|
||||
const search = customSearch ?? `preset:"${state.getCurrentName()}"`;
|
||||
const search = customSearch
|
||||
? customSearch
|
||||
: `preset:"${state.getCurrentName()}"`;
|
||||
const resp = await computeFsrsWeights({
|
||||
search,
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue