diff options
author | Alexandre Flament <alex@al-f.net> | 2020-09-24 16:26:00 +0200 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2020-09-24 16:26:00 +0200 |
commit | f2f3300bde0cc304f80809ff766fc557b5486098 (patch) | |
tree | 888b8f1c2f85c8400c3b78f1dd15ccd540137ff6 /searx/webapp.py | |
parent | 485a502b886bc7fb8a806ffc576b0eec99990a5c (diff) | |
download | searxng-f2f3300bde0cc304f80809ff766fc557b5486098.tar.gz searxng-f2f3300bde0cc304f80809ff766fc557b5486098.zip |
[mod] more typing
Diffstat (limited to 'searx/webapp.py')
-rwxr-xr-x | searx/webapp.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/searx/webapp.py b/searx/webapp.py index 119f9f3b7..f3bbbc2b8 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -513,7 +513,7 @@ def index_error(output_format, error_message): request.errors.append(gettext('search error')) return render( 'index.html', - selected_categories=get_selected_categories(request.form, request.preferences), + selected_categories=get_selected_categories(request.preferences, request.form), ) @@ -535,7 +535,7 @@ def index(): if output_format == 'html': return render( 'index.html', - selected_categories=get_selected_categories(request.form, request.preferences), + selected_categories=get_selected_categories(request.preferences, request.form), ) else: return index_error(output_format, 'No query'), 400 @@ -816,7 +816,7 @@ def preferences(): # end of stats return render('preferences.html', - selected_categories=get_selected_categories(request.form, request.preferences), + selected_categories=get_selected_categories(request.preferences, request.form), all_categories=_get_ordered_categories(), locales=settings['locales'], current_locale=request.preferences.get_value("locale"), |