mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
4f0ca12642
commit
2f122ce624
@ -568,7 +568,7 @@ class ResultCache(SearchQueryParser): # {{{
|
|||||||
matches.add(id_)
|
matches.add(id_)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
add_if_valq_false = valq == 'false'
|
add_if_nothing_matches = valq == 'false'
|
||||||
pairs = [p.strip() for p in item[loc].split(split_char)]
|
pairs = [p.strip() for p in item[loc].split(split_char)]
|
||||||
for pair in pairs:
|
for pair in pairs:
|
||||||
parts = pair.split(':')
|
parts = pair.split(':')
|
||||||
@ -584,13 +584,13 @@ class ResultCache(SearchQueryParser): # {{{
|
|||||||
continue
|
continue
|
||||||
elif valq == 'false':
|
elif valq == 'false':
|
||||||
if v:
|
if v:
|
||||||
add_if_valq_false = False
|
add_if_nothing_matches = False
|
||||||
continue
|
continue
|
||||||
elif not _match(valq, v, valq_mkind):
|
elif not _match(valq, v, valq_mkind):
|
||||||
continue
|
continue
|
||||||
matches.add(id_)
|
matches.add(id_)
|
||||||
|
|
||||||
if add_if_valq_false:
|
if add_if_nothing_matches:
|
||||||
matches.add(id_)
|
matches.add(id_)
|
||||||
return matches
|
return matches
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user