mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
don't include suspended cards in cram
This commit is contained in:
parent
0317e63cfb
commit
07c3297a9a
1 changed files with 1 additions and 0 deletions
|
@ -737,6 +737,7 @@ did = ? and queue = 2 and due <= ? limit ?""",
|
||||||
# gather card ids and sort
|
# gather card ids and sort
|
||||||
order = self._dynOrder(deck)
|
order = self._dynOrder(deck)
|
||||||
limit = " limit %d" % deck['limit']
|
limit = " limit %d" % deck['limit']
|
||||||
|
search = deck['search'] + " -is:suspended"
|
||||||
try:
|
try:
|
||||||
ids = self.col.findCards(deck['search'], order=order+limit)
|
ids = self.col.findCards(deck['search'], order=order+limit)
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Reference in a new issue