summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-12-22 09:13:23 +0100
committerMartin Fischer <martin@push-f.com>2022-01-03 07:01:49 +0100
commitdf34b1ddcf02651ea0eae273baca6f340caad84e (patch)
treeb3f016ba9c2bbb233ddae96497f1ef9d69fcc25c /searx
parent8a0810cedce946ff0694f2ed10cfa3c837d93b06 (diff)
downloadsearxng-df34b1ddcf02651ea0eae273baca6f340caad84e.tar.gz
searxng-df34b1ddcf02651ea0eae273baca6f340caad84e.zip
[enh] settings.yml: allow granular overwrites for about
Diffstat (limited to 'searx')
-rw-r--r--searx/engines/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/searx/engines/__init__.py b/searx/engines/__init__.py
index a3dd7a95a..1fc01600a 100644
--- a/searx/engines/__init__.py
+++ b/searx/engines/__init__.py
@@ -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)