From 41c4ba3dd63fd1ab677f0396ec707a3192c6a541 Mon Sep 17 00:00:00 2001 From: rene Date: Fri, 17 Apr 2026 09:10:00 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20Admin-Stats=20=E2=80=94=20poison=5Falert?= =?UTF-8?q?s=20=E2=86=92=20poison=20mit=20korrekter=20Bedingung?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/routes/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/routes/admin.py b/backend/routes/admin.py index fd15441..28f6e2d 100644 --- a/backend/routes/admin.py +++ b/backend/routes/admin.py @@ -60,7 +60,7 @@ async def stats(user=Depends(require_mod)): "SELECT COUNT(*) FROM users WHERE is_banned=1" ).fetchone()[0] dogs_total = conn.execute("SELECT COUNT(*) FROM dogs").fetchone()[0] - poison_total = conn.execute("SELECT COUNT(*) FROM poison_alerts WHERE status='aktiv'").fetchone()[0] + poison_total = conn.execute("SELECT COUNT(*) FROM poison WHERE geloest=0 AND expires_at > datetime('now')").fetchone()[0] return { "users_total": users_total,