1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-22 20:17:45 +01:00

Remove get local from request.args

args parameters are merged in form in pre_request, so
this patch removes that useless operation.
This commit is contained in:
Nicolas Gelot 2019-03-28 18:07:02 +01:00
parent 8189b0d192
commit a818d3241d

View File

@ -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']