Search for empty fields using location:none.

This commit is contained in:
John Schember 2009-06-29 07:05:47 -04:00
parent b0ec329dc3
commit 7e493d1b01

View File

@ -208,6 +208,9 @@ class ResultCache(SearchQueryParser):
for item in self._data:
if item is None: continue
for loc in location:
if (not item[loc] or item[loc] == [] or item[loc] == 0 or item[loc] == '') and query == 'none':
matches.add(item[0])
break
if item[loc] and query in item[loc].lower():
matches.add(item[0])
break