From 4979b4f9d98186d0a5a8d10c096673c596462eb5 Mon Sep 17 00:00:00 2001 From: renyhp Date: Thu, 26 Nov 2020 15:34:53 +0100 Subject: [PATCH] Another patch --- searx/webapp.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/searx/webapp.py b/searx/webapp.py index b1fa84ced..9ec5fc33f 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -577,6 +577,7 @@ def search(): if output_format == 'html': return render( 'index.html', + advanced_search=request.preferences.get_value('advanced_search') selected_categories=get_selected_categories(request.preferences, request.form), ) else: @@ -611,7 +612,10 @@ def search(): return redirect(result_container.redirect_url) # UI - advanced_search = request.preferences.get_value('advanced_search') + # 'q' in request.from, possible value from request.form.get('advanced_search'): + # * 'on': the checkbox is checked + # * None: the checkbox is unchecked or request is sent from opensearch.xml + advanced_search = request.form.get('advanced_search') # Server-Timing header request.timings = result_container.get_timings()