summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-06-08 10:34:32 +0200
committerAlexandre Flament <alex@al-f.net>2021-06-08 15:54:11 +0200
commit91856e8f6a55ba88d928a2ddc2facfd66c1208d2 (patch)
tree0303ebb7af7abc5ae4e185d43e942d743275be3d /searx/webapp.py
parent15567955b4bd03dc9e848b263495e88720654283 (diff)
downloadsearxng-91856e8f6a55ba88d928a2ddc2facfd66c1208d2.tar.gz
searxng-91856e8f6a55ba88d928a2ddc2facfd66c1208d2.zip
[mod] refactor searx.webapp.render: remove unused parameters
Diffstat (limited to 'searx/webapp.py')
-rwxr-xr-xsearx/webapp.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index b6f0c28c2..44c68d66a 100755
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -451,8 +451,7 @@ def render(template_name, override_theme=None, **kwargs):
_get_ordered_categories()
if x in enabled_categories]
- if 'autocomplete' not in kwargs:
- kwargs['autocomplete'] = request.preferences.get_value('autocomplete')
+ kwargs['autocomplete'] = request.preferences.get_value('autocomplete')
locale = request.preferences.get_value('locale')
@@ -485,8 +484,6 @@ def render(template_name, override_theme=None, **kwargs):
kwargs['theme'] = get_current_theme_name(override=override_theme)
- kwargs['template_name'] = template_name
-
kwargs['cookies'] = request.cookies
kwargs['errors'] = request.errors