optimize deck:* case

This commit is contained in:
Damien Elmes 2012-05-24 07:28:14 +09:00
parent 942beef5de
commit 090e47eb7b

View file

@ -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