mirror of
https://github.com/kevinveenbirkenbach/homepage.veen.world.git
synced 2026-02-23 03:02:44 +00:00
modified icon function
This commit is contained in:
@@ -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"])
|
||||
|
||||
Reference in New Issue
Block a user