mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
Fix/exclude suspended cards when optimize all presets (#3198)
This commit is contained in:
parent
ce8ddc84b9
commit
c9dccb5217
1 changed files with 1 additions and 0 deletions
|
@ -347,6 +347,7 @@ impl Collection {
|
||||||
for (idx, config) in req.configs.iter_mut().enumerate() {
|
for (idx, config) in req.configs.iter_mut().enumerate() {
|
||||||
let search = if config.inner.weight_search.trim().is_empty() {
|
let search = if config.inner.weight_search.trim().is_empty() {
|
||||||
SearchNode::Preset(config.name.clone())
|
SearchNode::Preset(config.name.clone())
|
||||||
|
.and(SearchNode::State(StateKind::Suspended).negated())
|
||||||
.try_into_search()?
|
.try_into_search()?
|
||||||
.to_string()
|
.to_string()
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue