Merge branch 'develop'
This commit is contained in:
commit
cd3e3bdbf6
1 changed files with 4 additions and 1 deletions
|
|
@ -799,7 +799,10 @@ 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.")
|
||||
token = await _umami_auth()
|
||||
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})")
|
||||
headers = {"Authorization": f"Bearer {token}"}
|
||||
|
||||
now = datetime.now(_TZ)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue