mirror of
https://github.com/searxng/searxng.git
synced 2025-07-24 13:49:26 +02:00
Preferences URL in preferences
Revert translation changes Auto-save preferences from URL Preferences URL in preferences Fix that Preferences URL in preferences
This commit is contained in:
parent
de0c4d7cd8
commit
7d443dfea3
2 changed files with 10 additions and 0 deletions
|
@ -971,6 +971,11 @@ 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':
|
||||
resp = make_response(redirect(url_for('index', _external=True)))
|
||||
return request.preferences.save(resp)
|
||||
|
||||
# save preferences
|
||||
if request.method == 'POST':
|
||||
resp = make_response(redirect(url_for('index', _external=True)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue