mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Search for empty fields using location:none.
This commit is contained in:
parent
b0ec329dc3
commit
7e493d1b01
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user