diff options
author | Nicolas Gelot <nicofonk@gmail.com> | 2019-03-28 18:07:02 +0100 |
---|---|---|
committer | Nicolas Gelot <nicofonk@gmail.com> | 2019-06-17 23:13:04 +0200 |
commit | a818d3241df2cf010086f837a504b11983c3d55f (patch) | |
tree | afdaf252e9300873594e90622b15b64edaab46d2 /searx/webapp.py | |
parent | 8189b0d192224abe9e8ce61747328ebdc34fabb1 (diff) | |
download | searxng-a818d3241df2cf010086f837a504b11983c3d55f.tar.gz searxng-a818d3241df2cf010086f837a504b11983c3d55f.zip |
Remove get local from request.args
args parameters are merged in form in pre_request, so
this patch removes that useless operation.
Diffstat (limited to 'searx/webapp.py')
-rw-r--r-- | searx/webapp.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/searx/webapp.py b/searx/webapp.py index 727259774..c44612a44 100644 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -157,10 +157,6 @@ def get_locale(): if request.preferences.get_value('locale') != '': locale = request.preferences.get_value('locale') - if 'locale' in request.args\ - and request.args['locale'] in settings['locales']: - locale = request.args['locale'] - if 'locale' in request.form\ and request.form['locale'] in settings['locales']: locale = request.form['locale'] |