Update app.py

This commit is contained in:
2026-05-05 20:30:17 +02:00
parent 28a403a0dd
commit 216ede04a7
+6
View File
@@ -111,6 +111,12 @@ def load_cache():
logger.info(f"Loaded cache with {len(KNOWN_EXTERNAL_USERS)} users")
except:
KNOWN_EXTERNAL_USERS = {}
else:
# 🔥 neu: Datei initial anlegen
os.makedirs(os.path.dirname(CACHE_FILE), exist_ok=True)
with open(CACHE_FILE, "w") as f:
json.dump({}, f)
logger.info("Initialized empty cache file")
def save_cache():
global CACHE_DIRTY