mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 14:17:13 -05:00
add search for delayed
This commit is contained in:
parent
eac428f6b3
commit
f8b6d18dff
1 changed files with 5 additions and 1 deletions
|
|
@ -1791,7 +1791,11 @@ cardTags.tagId in %s""" % ids2str(ids)
|
|||
else:
|
||||
n = 0
|
||||
qquery += "select id from cards where type = %d" % n
|
||||
elif token == "due":
|
||||
elif token == "delayed":
|
||||
qquery += ("select id from cards where "
|
||||
"due < %d and isDue = 0 and "
|
||||
"priority in (1,2,3,4)") % time.time()
|
||||
else: # due
|
||||
qquery += ("select id from cards where "
|
||||
"type in (0,1) and isDue = 1")
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue