From 535fff109f5664b8a72710593cdbb5cb1e670546 Mon Sep 17 00:00:00 2001 From: rachmadaniHaryono Date: Sat, 18 May 2019 00:03:49 +0800 Subject: [PATCH] fix: dev: python3 dict keys jsonify --- searx/webapp.py | 4 ++-- 1 file 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,