summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2026-06-14 15:16:26 +0200
committerMarkus Heiser <markus.heiser@darmarIT.de>2026-06-15 10:52:00 +0200
commit6c9dcd42420cee087ad7fe3d686dfc2b632ebbee (patch)
tree27031bc2bbb57a2eb9596bb6d5f588bd9a2db0e3 /searx/webapp.py
parentb3e08f2a44640ffc45d5955f5ff43b4a4d555578 (diff)
[chore] complete and normalize the attributes of engine objects (#6258)
Drop outdated engine attributes: supported_languages, language_aliases Complete, normalize and document the type definitions for the engine-module and engine-class. For the ``engine.about`` section of the configuration, a type check is performed based on structure ``searx.enginelib.EngineAbout``. The property ``engine.about.language`` no longer exists; existing values have been migrated to ``engine.language``. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/webapp.py')
-rwxr-xr-xsearx/webapp.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index 55ef84e8d..85f57266a 100755
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -1075,10 +1075,9 @@ def engine_descriptions():
result[engine] = description
# overwrite by about:description (from settings)
- for engine_name, engine_mod in engines.items():
- descr = getattr(engine_mod, 'about', {}).get('description', None)
- if descr is not None:
- result[engine_name] = [descr, "SearXNG config"]
+ for eng_name, eng_obj in engines.items():
+ if eng_obj.about.description:
+ result[eng_name] = [eng_obj.about.description, "SearXNG config"]
return jsonify(result)