don't pull learning cards into v1 filtered deck

preventing emptying is harder - operations like suspending
don't expect remFromDyn() to fail
This commit is contained in:
Damien Elmes 2018-07-11 20:28:14 +10:00
parent 6bd1eed9b6
commit 13c54e02d8

View File

@ -957,7 +957,7 @@ select id from cards where did in %s and queue = 2 and due <= ? limit ?)"""
orderlimit = self._dynOrder(order, limit)
if search.strip():
search = "(%s)" % search
search = "%s -is:suspended -is:buried -deck:filtered" % search
search = "%s -is:suspended -is:buried -deck:filtered -is:learn" % search
try:
ids = self.col.findCards(search, order=orderlimit)
except: