mirror of
https://github.com/searxng/searxng.git
synced 2024-11-22 12:10:11 +01:00
[enh] settings.yml: allow granular overwrites for about
This commit is contained in:
parent
8a0810cedc
commit
df34b1ddcf
@ -138,6 +138,8 @@ def update_engine_attributes(engine, engine_data):
|
||||
if isinstance(param_value, str):
|
||||
param_value = list(map(str.strip, param_value.split(',')))
|
||||
engine.categories = param_value
|
||||
elif hasattr(engine, 'about') and param_name == 'about':
|
||||
engine.about = {**engine.about, **engine_data['about']}
|
||||
else:
|
||||
setattr(engine, param_name, param_value)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user