master
Aevann1 2021-09-08 09:19:30 +02:00
parent 1329564341
commit 7adf2f4d84
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +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(func.sum(User.coins)),
"total_coins": g.db.query(func.sum(User.coins)).scalar(),
"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(),