Compare commits

..

No commits in common. "cd3e3bdbf6436e647ad25027d48e9e1136eaff3e" and "86c5400c2eade312f5247df5e7c6e3c2d287114b" have entirely different histories.

View file

@ -799,10 +799,7 @@ async def get_analytics(user=Depends(require_mod)):
site_id = os.getenv("UMAMI_SITE_ID", "")
if not url or not site_id:
raise HTTPException(503, "Umami nicht konfiguriert.")
try:
token = await _umami_auth()
except Exception as e:
raise HTTPException(503, f"Umami-Login fehlgeschlagen: Bitte UMAMI_USERNAME und UMAMI_PASSWORD in .env prüfen. ({e})")
token = await _umami_auth()
headers = {"Authorization": f"Bearer {token}"}
now = datetime.now(_TZ)