summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
authorrenyhp <renyhp@disroot.org>2020-11-23 19:13:29 +0100
committerrenyhp <renyhp@disroot.org>2020-11-23 19:13:29 +0100
commit22489c4b5f927af5d74b3670b917aee0732543cc (patch)
tree575e2ad2ba8e77f27a96d86b325110eebca8c021 /searx/webapp.py
parentb00f77059c93bc91f706b5f0c51f7db752669b09 (diff)
downloadsearxng-22489c4b5f927af5d74b3670b917aee0732543cc.tar.gz
searxng-22489c4b5f927af5d74b3670b917aee0732543cc.zip
Patch advanced search preferences
Diffstat (limited to 'searx/webapp.py')
-rwxr-xr-xsearx/webapp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index c0530a834..b1fa84ced 100755
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -546,7 +546,7 @@ def index():
"""Render index page."""
# UI
- advanced_search = request.form.get('advanced_search', request.preferences.get_value('advanced_search'))
+ advanced_search = request.preferences.get_value('advanced_search')
# redirect to search if there's a query in the request
if request.form.get('q'):
@@ -611,7 +611,7 @@ def search():
return redirect(result_container.redirect_url)
# UI
- advanced_search = request.form.get('advanced_search', None)
+ advanced_search = request.preferences.get_value('advanced_search')
# Server-Timing header
request.timings = result_container.get_timings()