mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
remove is:recent
This commit is contained in:
parent
2149502a77
commit
fbefb8a906
1 changed files with 1 additions and 12 deletions
13
anki/find.py
13
anki/find.py
|
@ -47,14 +47,7 @@ class Finder(object):
|
|||
return []
|
||||
(q, args) = self._whereClause()
|
||||
order = self._order()
|
||||
if self.lims['recent']:
|
||||
query = """
|
||||
select c.id from cards c, notes n where c.id in (
|
||||
select id from cards c where %s limit 100)
|
||||
and c.nid=n.id
|
||||
%s""" % (q, order)
|
||||
else:
|
||||
query = """\
|
||||
query = """\
|
||||
select c.id from cards c, notes n where %s
|
||||
and c.nid=n.id %s""" % (q, order)
|
||||
res = self.col.db.list(query, **args)
|
||||
|
@ -109,7 +102,6 @@ and c.nid=n.id %s""" % (q, order)
|
|||
'preds': [],
|
||||
'args': {},
|
||||
'valid': True,
|
||||
'recent': False,
|
||||
}
|
||||
for c, (token, isNeg, type) in enumerate(self._parseQuery()):
|
||||
if type == SEARCH_TAG:
|
||||
|
@ -161,9 +153,6 @@ and c.nid=n.id %s""" % (q, order)
|
|||
cond = "queue = -1"
|
||||
elif val == "due":
|
||||
cond = "(queue = 2 and due <= %d)" % self.col.sched.today
|
||||
elif val == "recent":
|
||||
self.lims['recent'] = True
|
||||
return
|
||||
if neg:
|
||||
cond = "not (%s)" % cond
|
||||
if cond:
|
||||
|
|
Loading…
Reference in a new issue