summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
authorNicolas Gelot <nicofonk@gmail.com>2019-03-28 18:07:02 +0100
committerNicolas Gelot <nicofonk@gmail.com>2019-06-17 23:13:04 +0200
commita818d3241df2cf010086f837a504b11983c3d55f (patch)
treeafdaf252e9300873594e90622b15b64edaab46d2 /searx/webapp.py
parent8189b0d192224abe9e8ce61747328ebdc34fabb1 (diff)
downloadsearxng-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.py4
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']