From 2b763ee0b2564f4dba85f4c78c573721ec665690 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 24 Dec 2023 16:10:32 +1000 Subject: [PATCH] Exclude suspended cards from FSRS optimizing https://forums.ankiweb.net/t/anki-23-12-beta/37771/155 --- ts/deck-options/FsrsOptions.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ts/deck-options/FsrsOptions.svelte b/ts/deck-options/FsrsOptions.svelte index 4a8dbe9e7..d7373a11a 100644 --- a/ts/deck-options/FsrsOptions.svelte +++ b/ts/deck-options/FsrsOptions.svelte @@ -44,7 +44,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html optimalRetention = 0; } $: computing = computingWeights || checkingWeights || computingRetention; - $: defaultWeightSearch = `preset:"${state.getCurrentName()}"`; + $: defaultWeightSearch = `preset:"${state.getCurrentName()}" -is:suspended`; $: desiredRetentionWarning = getRetentionWarning($config.desiredRetention); $: retentionWarningClass = getRetentionWarningClass($config.desiredRetention); @@ -180,7 +180,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html async () => { optimalRetentionRequest.maxInterval = $config.maximumReviewInterval; optimalRetentionRequest.weights = $config.fsrsWeights; - optimalRetentionRequest.search = `preset:"${state.getCurrentName()}"`; + optimalRetentionRequest.search = `preset:"${state.getCurrentName()}" -is:suspended`; const resp = await computeOptimalRetention(optimalRetentionRequest); optimalRetention = resp.optimalRetention; computeRetentionProgress = undefined;