From c69c61838bd8b80d641af6557702ce85e40600f0 Mon Sep 17 00:00:00 2001 From: mrpaulblack Date: Tue, 10 May 2022 22:25:42 +0200 Subject: [PATCH] [fix] autocomplete and infinite scroll persistence in preferences * fixes a regression from https://github.com/searxng/searxng/pull/1186 --- searx/webapp.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/searx/webapp.py b/searx/webapp.py index 2c633fbea..7eca07753 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -454,6 +454,8 @@ def render(template_name: str, **kwargs): # values from the preferences kwargs['preferences'] = request.preferences + kwargs['autocomplete'] = request.preferences.get_value('autocomplete') + kwargs['infinite_scroll'] = request.preferences.get_value('infinite_scroll') kwargs['results_on_new_tab'] = request.preferences.get_value('results_on_new_tab') kwargs['advanced_search'] = request.preferences.get_value('advanced_search') kwargs['query_in_title'] = request.preferences.get_value('query_in_title')