Fix: Admin-Stats — poison_alerts → poison mit korrekter Bedingung
This commit is contained in:
parent
6698543d14
commit
41c4ba3dd6
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ async def stats(user=Depends(require_mod)):
|
||||||
"SELECT COUNT(*) FROM users WHERE is_banned=1"
|
"SELECT COUNT(*) FROM users WHERE is_banned=1"
|
||||||
).fetchone()[0]
|
).fetchone()[0]
|
||||||
dogs_total = conn.execute("SELECT COUNT(*) FROM dogs").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 {
|
return {
|
||||||
"users_total": users_total,
|
"users_total": users_total,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue