model:foo is ntype:foo in searches now

This commit is contained in:
Damien Elmes 2012-03-30 00:03:39 +09:00
parent 07c3297a9a
commit 73bdad9d70

View file

@ -347,7 +347,7 @@ where mid in %s and flds like ? escape '\\'""" % (
elif token['value'].startswith("is:"):
token['value'] = token['value'][3:].lower()
type = SEARCH_TYPE
elif token['value'].startswith("model:"):
elif token['value'].startswith("ntype:"):
token['value'] = token['value'][6:].lower()
type = SEARCH_MODEL
elif token['value'].startswith("deck:"):