mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04: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):
|
||||
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
|
||||
extra = "not" if neg else ""
|
||||
val = val.replace("*", "%")
|
||||
|
|
Loading…
Reference in a new issue