mirror of
https://github.com/searxng/searxng.git
synced 2024-11-19 02:40:11 +01:00
Merge pull request #811 from return42/enh-788
[mod] configuration to overwrite engine description
This commit is contained in:
commit
81453a0eba
@ -1170,6 +1170,13 @@ def engine_descriptions():
|
||||
if isinstance(description, str):
|
||||
description = [description, 'wikipedia']
|
||||
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"]
|
||||
|
||||
return jsonify(result)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user