mirror of
https://github.com/searxng/searxng.git
synced 2025-12-22 19:50:00 +00:00
[format.python] based on bugfix in 9ed626130
This commit is contained in:
@@ -449,8 +449,8 @@ def get_client_settings():
|
||||
req_pref = request.preferences
|
||||
return {
|
||||
'autocomplete_provider': req_pref.get_value('autocomplete'),
|
||||
'autocomplete_min' : get_setting('search.autocomplete_min'),
|
||||
'http_method': req_pref.get_value('method'),
|
||||
'autocomplete_min': get_setting('search.autocomplete_min'),
|
||||
'http_method': req_pref.get_value('method'),
|
||||
'infinite_scroll': req_pref.get_value('infinite_scroll'),
|
||||
'translations': get_translations(),
|
||||
'search_on_category_select': req_pref.plugins.choices['searx.plugins.search_on_category_select'],
|
||||
@@ -467,7 +467,8 @@ def render(template_name: str, override_theme: str = None, **kwargs):
|
||||
json.dumps(get_client_settings()),
|
||||
encoding='utf-8',
|
||||
)
|
||||
), encoding='utf-8',
|
||||
),
|
||||
encoding='utf-8',
|
||||
)
|
||||
|
||||
# obsolete, only needed by oscar
|
||||
|
||||
Reference in New Issue
Block a user