Exclude suspended cards from FSRS optimizing
https://forums.ankiweb.net/t/anki-23-12-beta/37771/155
This commit is contained in:
parent
37f55a381e
commit
2b763ee0b2
@ -44,7 +44,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||||||
optimalRetention = 0;
|
optimalRetention = 0;
|
||||||
}
|
}
|
||||||
$: computing = computingWeights || checkingWeights || computingRetention;
|
$: computing = computingWeights || checkingWeights || computingRetention;
|
||||||
$: defaultWeightSearch = `preset:"${state.getCurrentName()}"`;
|
$: defaultWeightSearch = `preset:"${state.getCurrentName()}" -is:suspended`;
|
||||||
$: desiredRetentionWarning = getRetentionWarning($config.desiredRetention);
|
$: desiredRetentionWarning = getRetentionWarning($config.desiredRetention);
|
||||||
$: retentionWarningClass = getRetentionWarningClass($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 () => {
|
async () => {
|
||||||
optimalRetentionRequest.maxInterval = $config.maximumReviewInterval;
|
optimalRetentionRequest.maxInterval = $config.maximumReviewInterval;
|
||||||
optimalRetentionRequest.weights = $config.fsrsWeights;
|
optimalRetentionRequest.weights = $config.fsrsWeights;
|
||||||
optimalRetentionRequest.search = `preset:"${state.getCurrentName()}"`;
|
optimalRetentionRequest.search = `preset:"${state.getCurrentName()}" -is:suspended`;
|
||||||
const resp = await computeOptimalRetention(optimalRetentionRequest);
|
const resp = await computeOptimalRetention(optimalRetentionRequest);
|
||||||
optimalRetention = resp.optimalRetention;
|
optimalRetention = resp.optimalRetention;
|
||||||
computeRetentionProgress = undefined;
|
computeRetentionProgress = undefined;
|
||||||
|
Loading…
Reference in New Issue
Block a user