summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
authorrenyhp <renyhp@disroot.org>2020-11-26 15:34:53 +0100
committerrenyhp <renyhp@disroot.org>2020-11-26 15:34:53 +0100
commit4979b4f9d98186d0a5a8d10c096673c596462eb5 (patch)
tree0116e3be861c52469073a80052c9c17f1396bb08 /searx/webapp.py
parent22489c4b5f927af5d74b3670b917aee0732543cc (diff)
downloadsearxng-4979b4f9d98186d0a5a8d10c096673c596462eb5.tar.gz
searxng-4979b4f9d98186d0a5a8d10c096673c596462eb5.zip
Another patch
Diffstat (limited to 'searx/webapp.py')
-rwxr-xr-xsearx/webapp.py6
1 files changed, 5 insertions, 1 deletions
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()