mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 01:52:31 +02:00
Fix #762133 (cover:False is broken)
This commit is contained in:
commit
5ca446d874
1 changed files with 2 additions and 2 deletions
|
|
@ -413,12 +413,12 @@ def get_numeric_matches(self, location, query, candidates, val_func = None):
|
|||
cast = adjust = lambda x: x
|
||||
|
||||
if query == 'false':
|
||||
if dt == 'rating':
|
||||
if dt == 'rating' or location == 'cover':
|
||||
relop = lambda x,y: not bool(x)
|
||||
else:
|
||||
relop = lambda x,y: x is None
|
||||
elif query == 'true':
|
||||
if dt == 'rating':
|
||||
if dt == 'rating' or location == 'cover':
|
||||
relop = lambda x,y: bool(x)
|
||||
else:
|
||||
relop = lambda x,y: x is not None
|
||||
|
|
|
|||
Loading…
Reference in a new issue