modified icon function

This commit is contained in:
2025-01-09 12:20:57 +01:00
parent 8959f4405b
commit 14ccedf1c1
4 changed files with 109 additions and 56 deletions

View File

@@ -66,6 +66,9 @@ FLASK_ENV = os.getenv("FLASK_ENV", "production")
@app.before_request
def reload_config_in_dev():
if FLASK_ENV == "development":
load_config(app)
# Cachen der Icons
for card in app.config["cards"]:
card["icon"]["cache"] = cache_file(card["icon"]["source"])