mirror of
https://github.com/searxng/searxng.git
synced 2024-11-23 11:21:00 +00:00
Merge pull request #811 from return42/enh-788
[mod] configuration to overwrite engine description
This commit is contained in:
commit
81453a0eba
1 changed files with 7 additions and 0 deletions
|
@ -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 a new issue