diff options
author | Dalf <alex@al-f.net> | 2017-01-07 14:42:55 +0100 |
---|---|---|
committer | Dalf <alex@al-f.net> | 2017-01-07 14:42:55 +0100 |
commit | 06bea82935d13ecdc65c7ad12a67f6627ec7f94f (patch) | |
tree | fecd281c6bfc859573a22425645dbc9fdbd0e532 /searx/webapp.py | |
parent | f6f0c1854c3fafaf91bc9f1b9d4d420c2bbd80bc (diff) | |
download | searxng-06bea82935d13ecdc65c7ad12a67f6627ec7f94f.tar.gz searxng-06bea82935d13ecdc65c7ad12a67f6627ec7f94f.zip |
[mod] /config API : add language_support, paging, safesearch, supported_languages, time_range_support, timeout fields.
Diffstat (limited to 'searx/webapp.py')
-rw-r--r-- | searx/webapp.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/searx/webapp.py b/searx/webapp.py index 4fee6e588..b2fca5313 100644 --- 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} |