mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix 807262: true/false searches don't work on device views.
This commit is contained in:
parent
f01ff5531a
commit
231c0a4bbf
@ -950,11 +950,11 @@ class OnDeviceSearch(SearchQueryParser): # {{{
|
|||||||
for locvalue in locations:
|
for locvalue in locations:
|
||||||
accessor = q[locvalue]
|
accessor = q[locvalue]
|
||||||
if query == 'true':
|
if query == 'true':
|
||||||
if accessor(row) is not None:
|
if accessor(row):
|
||||||
matches.add(index)
|
matches.add(index)
|
||||||
continue
|
continue
|
||||||
if query == 'false':
|
if query == 'false':
|
||||||
if accessor(row) is None:
|
if not accessor(row):
|
||||||
matches.add(index)
|
matches.add(index)
|
||||||
continue
|
continue
|
||||||
if locvalue == 'inlibrary':
|
if locvalue == 'inlibrary':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user