mirror of
https://github.com/ankitects/anki.git
synced 2025-11-11 15:17:12 -05:00
fix tag:none
This commit is contained in:
parent
d8ec8d0389
commit
f7fe1c6590
1 changed files with 5 additions and 1 deletions
|
|
@ -131,7 +131,11 @@ and c.nid=n.id %s""" % (q, order)
|
||||||
|
|
||||||
def _findTag(self, val, neg, c):
|
def _findTag(self, val, neg, c):
|
||||||
if val == "none":
|
if val == "none":
|
||||||
self.lims['preds'].append("select id from notes where tags = ''")
|
if neg:
|
||||||
|
t = "tags != ''"
|
||||||
|
else:
|
||||||
|
t = "tags = ''"
|
||||||
|
self.lims['preds'].append(t)
|
||||||
return
|
return
|
||||||
extra = "not" if neg else ""
|
extra = "not" if neg else ""
|
||||||
val = val.replace("*", "%")
|
val = val.replace("*", "%")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue