master
Aevann1 2021-09-08 09:17:22 +02:00
parent 0799d61563
commit 1d8c47b6f0
1 changed files with 1 additions and 0 deletions

View File

@ -19,6 +19,7 @@ def participation_stats(v):
"private_users": g.db.query(User).filter_by(is_private=True).count(),
"banned_users": g.db.query(User).filter(User.is_banned > 0).count(),
"verified_email_users": g.db.query(User).filter_by(is_activated=True).count(),
"total_coins": g.db.query(User.coins).sum(),
"signups_last_24h": g.db.query(User).filter(User.created_utc > day).count(),
"total_posts": g.db.query(Submission).count(),
"posting_users": g.db.query(Submission.author_id).distinct().count(),