mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -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:
|
else:
|
||||||
s['bad'] = True
|
s['bad'] = True
|
||||||
return
|
return
|
||||||
|
elif txt == "skip":
|
||||||
|
return
|
||||||
# do we need a conjunction?
|
# do we need a conjunction?
|
||||||
if s['join']:
|
if s['join']:
|
||||||
if s['isor']:
|
if s['isor']:
|
||||||
|
@ -303,6 +305,9 @@ class Finder(object):
|
||||||
return "n.mid in %s" % ids2str(ids)
|
return "n.mid in %s" % ids2str(ids)
|
||||||
|
|
||||||
def _findDeck(self, val):
|
def _findDeck(self, val):
|
||||||
|
# if searching for all decks, skip
|
||||||
|
if val == "*":
|
||||||
|
return "skip"
|
||||||
def dids(did):
|
def dids(did):
|
||||||
if not did:
|
if not did:
|
||||||
return None
|
return None
|
||||||
|
|
Loading…
Reference in a new issue