mirror of https://github.com/searxng/searxng.git
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):
|
if isinstance(description, str):
|
||||||
description = [description, 'wikipedia']
|
description = [description, 'wikipedia']
|
||||||
result[engine] = description
|
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)
|
return jsonify(result)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue