summaryrefslogtreecommitdiff
path: root/searx/webutils.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/webutils.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/webutils.py')
-rw-r--r--searx/webutils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/webutils.py b/searx/webutils.py
index 8cf0762e3..9c3e8a0c9 100644
--- a/searx/webutils.py
+++ b/searx/webutils.py
@@ -323,7 +323,7 @@ def group_engines_in_tab(engines: "Iterable[Engine]") -> List[Tuple[str, "Iterab
return (group[0] == NO_SUBGROUPING, group[0].lower())
def engine_sort_key(engine):
- return (engine.about.get('language', ''), engine.name)
+ return (engine.language, engine.name)
tabs = list(get_setting('categories_as_tabs').keys())
subgroups = itertools.groupby(sorted(engines, key=get_subgroup), get_subgroup)