Add documentation to css related functions

This commit is contained in:
Jan-Pieter Baert 2019-12-22 19:46:35 +01:00
parent c20702b299
commit 3f3a6a3212
No known key found for this signature in database
GPG key ID: B19186932178234A

View file

@ -31,6 +31,7 @@ def home() -> str:
def get_css_dict(css_path):
"Generate the dictionary with all the currently available themes and their names"
themes_dict = dict()
# Open the YAML file with all the themes.
@ -71,8 +72,8 @@ def get_css_dict(css_path):
return themes_dict
# @general_bp.route("/css-list")
def css_list():
"Generate the list of names of all the currently available themes"
if request.cookies.get('performance', '') == 'highPerformance':
css_path = 'static/css/themes/highPerformance/'
else: