Updated css_list function to return a list instead of a json
This commit is contained in:
parent
7ac0d6291e
commit
285c36f0cf
1 changed files with 2 additions and 2 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue