From 6ba6b2ea995f2de3b89008f472c30f8faeefc357 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Wed, 19 Feb 2025 22:41:41 +0100 Subject: [PATCH] Implemented to set just class for cards --- app/app.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/app.py b/app/app.py index bec9938..c4b12c8 100644 --- a/app/app.py +++ b/app/app.py @@ -37,7 +37,9 @@ def reload_config_in_dev(): # Cache the icons for card in app.config["cards"]: - card["icon"]["cache"] = cache_manager.cache_file(card["icon"]["source"]) + # Just download the logo if an source url is passed + if card["icon"].get("source"): + card["icon"]["cache"] = cache_manager.cache_file(card["icon"]["source"]) app.config["company"]["logo"]["cache"] = cache_manager.cache_file(app.config["company"]["logo"]["source"]) app.config["company"]["favicon"]["cache"] = cache_manager.cache_file(app.config["company"]["favicon"]["source"])