mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix isbn:false not matching if other identifiers are attached to the book.
This commit is contained in:
parent
81ed281c8e
commit
4f0ca12642
@ -568,6 +568,7 @@ class ResultCache(SearchQueryParser): # {{{
|
||||
matches.add(id_)
|
||||
continue
|
||||
|
||||
add_if_valq_false = valq == 'false'
|
||||
pairs = [p.strip() for p in item[loc].split(split_char)]
|
||||
for pair in pairs:
|
||||
parts = pair.split(':')
|
||||
@ -583,10 +584,14 @@ class ResultCache(SearchQueryParser): # {{{
|
||||
continue
|
||||
elif valq == 'false':
|
||||
if v:
|
||||
add_if_valq_false = False
|
||||
continue
|
||||
elif not _match(valq, v, valq_mkind):
|
||||
continue
|
||||
matches.add(id_)
|
||||
|
||||
if add_if_valq_false:
|
||||
matches.add(id_)
|
||||
return matches
|
||||
|
||||
def _matchkind(self, query):
|
||||
|
Loading…
x
Reference in New Issue
Block a user