From 3f3a6a321230cff92b98e28d03ba210c115c5668 Mon Sep 17 00:00:00 2001 From: Jan-Pieter Baert Date: Sun, 22 Dec 2019 19:46:35 +0100 Subject: [PATCH] Add documentation to css related functions --- app/views/general.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/general.py b/app/views/general.py index 2f55183..5abf865 100644 --- a/app/views/general.py +++ b/app/views/general.py @@ -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: