mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
cram decks don't pull from other cram decks anymore
This commit is contained in:
parent
090e47eb7b
commit
44b4f18e6c
2 changed files with 5 additions and 1 deletions
|
@ -236,6 +236,10 @@ class Finder(object):
|
||||||
return "type = %d" % n
|
return "type = %d" % n
|
||||||
elif val == "suspended":
|
elif val == "suspended":
|
||||||
return "c.queue = -1"
|
return "c.queue = -1"
|
||||||
|
elif val == "regulardeck":
|
||||||
|
return "not c.odid"
|
||||||
|
elif val == "filterdeck":
|
||||||
|
return "c.odid"
|
||||||
elif val == "due":
|
elif val == "due":
|
||||||
return """
|
return """
|
||||||
(c.queue in (2,3) and c.due <= %d) or
|
(c.queue in (2,3) and c.due <= %d) or
|
||||||
|
|
|
@ -854,7 +854,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"
|
search = deck['search'] + " -is:suspended is:regulardeck"
|
||||||
try:
|
try:
|
||||||
ids = self.col.findCards(search, order=order+limit)
|
ids = self.col.findCards(search, order=order+limit)
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Reference in a new issue