mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
[format.python] based on bugfix in 9ed626130
This commit is contained in:
parent
9ed6261308
commit
4326009d00
5 changed files with 40 additions and 36 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue