make sure we include notes table when searching for no tags

This commit is contained in:
Damien Elmes 2012-10-01 20:45:49 +09:00
parent 880d50ed8a
commit b2e5fe3c7d

View file

@ -241,7 +241,7 @@ select distinct(n.id) from cards c, notes n where c.nid=n.id and """+preds
def _findTag(self, val, args):
if val == "none":
return 'tags = ""'
return 'n.tags = ""'
val = val.replace("*", "%")
if not val.startswith("%"):
val = "% " + val