don't include suspended cards in cram

This commit is contained in:
Damien Elmes 2012-03-30 00:03:30 +09:00
parent 0317e63cfb
commit 07c3297a9a

View file

@ -737,6 +737,7 @@ did = ? and queue = 2 and due <= ? limit ?""",
# gather card ids and sort
order = self._dynOrder(deck)
limit = " limit %d" % deck['limit']
search = deck['search'] + " -is:suspended"
try:
ids = self.col.findCards(deck['search'], order=order+limit)
except: