commit: 94327d67fcc8b7891556bee030432677a4692f45
parent: f6f0c1854c3fafaf91bc9f1b9d4d420c2bbd80bc
Author: Adam Tauber <asciimoo@gmail.com>
Date: Mon, 9 Jan 2017 18:08:35 +0100
Merge pull request #820 from dalf/config_api
[mod] /config API : add more fields for each engine
Diffstat:
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/searx/webapp.py b/searx/webapp.py
@@ -752,7 +752,16 @@ def config():
'engines': [{'name': engine_name,
'categories': engine.categories,
'shortcut': engine.shortcut,
- 'enabled': not engine.disabled}
+ 'enabled': not engine.disabled,
+ 'paging': engine.paging,
+ 'language_support': engine.language_support,
+ 'supported_languages':
+ engine.supported_languages.keys()
+ if isinstance(engine.supported_languages, dict)
+ else engine.supported_languages,
+ 'safesearch': engine.safesearch,
+ 'time_range_support': engine.time_range_support,
+ 'timeout': engine.timeout}
for engine_name, engine in engines.items()],
'plugins': [{'name': plugin.name,
'enabled': plugin.default_on}