From df34b1ddcf02651ea0eae273baca6f340caad84e Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Wed, 22 Dec 2021 09:13:23 +0100 Subject: [PATCH] [enh] settings.yml: allow granular overwrites for about --- searx/engines/__init__.py | 2 ++ 1 file changed, 2 insertions(+) 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)