diff options
author | rachmadaniHaryono <foreturiga@gmail.com> | 2019-05-18 00:03:49 +0800 |
---|---|---|
committer | rachmadaniHaryono <foreturiga@gmail.com> | 2019-05-18 00:03:49 +0800 |
commit | 535fff109f5664b8a72710593cdbb5cb1e670546 (patch) | |
tree | d513debd85476acc7fdd7b6f4161cb67388ce55f | |
parent | a84caa22cf947e973c10aa968d35fb2bdda6d048 (diff) | |
download | searxng-535fff109f5664b8a72710593cdbb5cb1e670546.tar.gz searxng-535fff109f5664b8a72710593cdbb5cb1e670546.zip |
fix: dev: python3 dict keys jsonify
-rw-r--r-- | searx/webapp.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/webapp.py b/searx/webapp.py index 727259774..8290b6822 100644 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -846,7 +846,7 @@ def clear_cookies(): @app.route('/config') def config(): - return jsonify({'categories': categories.keys(), + return jsonify({'categories': list(categories.keys()), 'engines': [{'name': engine_name, 'categories': engine.categories, 'shortcut': engine.shortcut, @@ -854,7 +854,7 @@ def config(): 'paging': engine.paging, 'language_support': engine.language_support, 'supported_languages': - engine.supported_languages.keys() + list(engine.supported_languages.keys()) if isinstance(engine.supported_languages, dict) else engine.supported_languages, 'safesearch': engine.safesearch, |