summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
authorBnyro <bnyro@tutanota.com>2024-01-21 12:35:52 +0100
committerMarkus Heiser <markus.heiser@darmarIT.de>2024-01-29 18:09:22 +0100
commita5decfb838967734462a6b85ff2dcb87d0a67e4c (patch)
treebb810976b8b0fa254d28b41cee498078dd11789d /searx/webapp.py
parenta8aaf5719bfb17adc66a09478a0a559b81a24ab0 (diff)
downloadsearxng-a5decfb838967734462a6b85ff2dcb87d0a67e4c.tar.gz
searxng-a5decfb838967734462a6b85ff2dcb87d0a67e4c.zip
[feat] preferences: button to copy input to restore preferences hash
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 53ca96785..c64ef0fc0 100755
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -875,8 +875,8 @@ def preferences():
# pylint: disable=too-many-locals, too-many-return-statements, too-many-branches
# pylint: disable=too-many-statements
- # save preferences using the link the /preferences?preferences=...&save=1
- if request.args.get('save') == '1':
+ # save preferences using the link the /preferences?preferences=...
+ if request.args.get('preferences') or request.form.get('preferences'):
resp = make_response(redirect(url_for('index', _external=True)))
return request.preferences.save(resp)