mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
Correcting flag search
Currently, "flag:01" or "flag:12" does not throw exception, while it should. Now it'll be the case
This commit is contained in:
parent
f1c3f124e2
commit
65ea5313c8
1 changed files with 1 additions and 1 deletions
|
@ -275,7 +275,7 @@ select distinct(n.id) from cards c, notes n where c.nid=n.id and """+preds
|
|||
|
||||
def _findFlag(self, args):
|
||||
(val, args) = args
|
||||
if not val or val not in "01234":
|
||||
if not val or len(val)!=1 or val not in "01234":
|
||||
return
|
||||
val = int(val)
|
||||
mask = 2**3 - 1
|
||||
|
|
Loading…
Reference in a new issue