mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-27 05:55:44 +01:00
...
This commit is contained in:
parent
4f0ca12642
commit
2f122ce624
1 changed files with 3 additions and 3 deletions
|
|
@ -568,7 +568,7 @@ def get_keypair_matches(self, location, query, candidates):
|
|||
matches.add(id_)
|
||||
continue
|
||||
|
||||
add_if_valq_false = valq == 'false'
|
||||
add_if_nothing_matches = valq == 'false'
|
||||
pairs = [p.strip() for p in item[loc].split(split_char)]
|
||||
for pair in pairs:
|
||||
parts = pair.split(':')
|
||||
|
|
@ -584,13 +584,13 @@ def get_keypair_matches(self, location, query, candidates):
|
|||
continue
|
||||
elif valq == 'false':
|
||||
if v:
|
||||
add_if_valq_false = False
|
||||
add_if_nothing_matches = False
|
||||
continue
|
||||
elif not _match(valq, v, valq_mkind):
|
||||
continue
|
||||
matches.add(id_)
|
||||
|
||||
if add_if_valq_false:
|
||||
if add_if_nothing_matches:
|
||||
matches.add(id_)
|
||||
return matches
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue