mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix bug #762133
This commit is contained in:
parent
315c8c54cd
commit
cfe278374d
@ -413,12 +413,12 @@ class ResultCache(SearchQueryParser): # {{{
|
|||||||
cast = adjust = lambda x: x
|
cast = adjust = lambda x: x
|
||||||
|
|
||||||
if query == 'false':
|
if query == 'false':
|
||||||
if dt == 'rating':
|
if dt == 'rating' or location == 'cover':
|
||||||
relop = lambda x,y: not bool(x)
|
relop = lambda x,y: not bool(x)
|
||||||
else:
|
else:
|
||||||
relop = lambda x,y: x is None
|
relop = lambda x,y: x is None
|
||||||
elif query == 'true':
|
elif query == 'true':
|
||||||
if dt == 'rating':
|
if dt == 'rating' or location == 'cover':
|
||||||
relop = lambda x,y: bool(x)
|
relop = lambda x,y: bool(x)
|
||||||
else:
|
else:
|
||||||
relop = lambda x,y: x is not None
|
relop = lambda x,y: x is not None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user