Fix 807262: true/false searches don't work on device views.

This commit is contained in:
Charles Haley 2011-07-08 07:50:51 +01:00
parent f01ff5531a
commit 231c0a4bbf

View File

@ -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':