mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
optimize deck:* case
This commit is contained in:
parent
942beef5de
commit
090e47eb7b
1 changed files with 5 additions and 0 deletions
|
@ -98,6 +98,8 @@ class Finder(object):
|
|||
else:
|
||||
s['bad'] = True
|
||||
return
|
||||
elif txt == "skip":
|
||||
return
|
||||
# do we need a conjunction?
|
||||
if s['join']:
|
||||
if s['isor']:
|
||||
|
@ -303,6 +305,9 @@ class Finder(object):
|
|||
return "n.mid in %s" % ids2str(ids)
|
||||
|
||||
def _findDeck(self, val):
|
||||
# if searching for all decks, skip
|
||||
if val == "*":
|
||||
return "skip"
|
||||
def dids(did):
|
||||
if not did:
|
||||
return None
|
||||
|
|
Loading…
Reference in a new issue