mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Server: Fix adding expressions to the search always using AND instead of respecting the setting to use OR or AND. Fixes #1724405 [request in remote client server](https://bugs.launchpad.net/calibre/+bug/1724405)
This commit is contained in:
parent
b36d1704e4
commit
a7c4335c2c
@ -153,9 +153,8 @@ def node_clicked(i):
|
|||||||
execute_search(expr)
|
execute_search(expr)
|
||||||
|
|
||||||
|
|
||||||
def add_to_search(node, search_type, anded):
|
def add_to_search(node, search_type):
|
||||||
if anded is undefined or anded is None:
|
anded = get_session_data().get('and_search_terms')
|
||||||
anded = get_session_data().get('and_search_terms')
|
|
||||||
state.active_nodes[node.id] = [search_type, anded]
|
state.active_nodes[node.id] = [search_type, anded]
|
||||||
render_search_expression()
|
render_search_expression()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user