From 285c36f0cf6f96f0df550b2787dfbfefbdd2af70 Mon Sep 17 00:00:00 2001 From: Pieter-Jan Cassiman Date: Tue, 17 Dec 2019 22:26:48 +0100 Subject: [PATCH] Updated css_list function to return a list instead of a json --- app/views/general.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/general.py b/app/views/general.py index 569d448..73c691e 100644 --- a/app/views/general.py +++ b/app/views/general.py @@ -73,13 +73,13 @@ def get_css_dict(css_path): return themes_dict -@general_bp.route("/css-list") +# @general_bp.route("/css-list") def css_list(): if request.cookies.get('performance', '') == 'highPerformance': css_path = 'static/css/themes/highPerformance/' else: css_path = 'static/css/themes/lowPerformance/' - return jsonify(list(get_css_dict(css_path).keys())) + return list(get_css_dict(css_path).keys()) @general_bp.route("/css")