summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
authorBnyro <bnyro@tutanota.com>2023-09-09 16:49:14 +0200
committerMarkus Heiser <markus.heiser@darmarIT.de>2023-09-18 21:29:11 +0200
commita55e0ac553e608e5657573a8173aa5a040a49054 (patch)
treed3d7dbdd8648e1f5007756628c2bc7cbfb19d774 /searx/webapp.py
parent90b0bfd1bf30ecd6b6e8b54d300be5fba45aecca (diff)
[feat] search on category select without JS
Co-authored-by: Alexandre Flament <alex@al-f.net>
Diffstat (limited to 'searx/webapp.py')
-rwxr-xr-xsearx/webapp.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index aa5e545d5..719ff92a1 100755
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -361,7 +361,7 @@ def get_client_settings():
'http_method': req_pref.get_value('method'),
'infinite_scroll': req_pref.get_value('infinite_scroll'),
'translations': get_translations(),
- 'search_on_category_select': req_pref.plugins.choices['searx.plugins.search_on_category_select'],
+ 'search_on_category_select': req_pref.get_value('searx.plugins.search_on_category_select'),
'hotkeys': req_pref.plugins.choices['searx.plugins.vim_hotkeys'],
'theme_static_path': custom_url_for('static', filename='themes/simple'),
}
@@ -389,6 +389,7 @@ def render(template_name: str, **kwargs):
kwargs['preferences'] = request.preferences
kwargs['autocomplete'] = request.preferences.get_value('autocomplete')
kwargs['infinite_scroll'] = request.preferences.get_value('infinite_scroll')
+ kwargs['search_on_category_select'] = request.preferences.get_value('search_on_category_select')
kwargs['results_on_new_tab'] = request.preferences.get_value('results_on_new_tab')
kwargs['advanced_search'] = request.preferences.get_value('advanced_search')
kwargs['query_in_title'] = request.preferences.get_value('query_in_title')