mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -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 {
|
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,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue