forked from rDrama/rDrama
master
parent
1329564341
commit
7adf2f4d84
|
@ -19,7 +19,7 @@ def participation_stats(v):
|
||||||
"private_users": g.db.query(User).filter_by(is_private=True).count(),
|
"private_users": g.db.query(User).filter_by(is_private=True).count(),
|
||||||
"banned_users": g.db.query(User).filter(User.is_banned > 0).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(),
|
"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(),
|
"signups_last_24h": g.db.query(User).filter(User.created_utc > day).count(),
|
||||||
"total_posts": g.db.query(Submission).count(),
|
"total_posts": g.db.query(Submission).count(),
|
||||||
"posting_users": g.db.query(Submission.author_id).distinct().count(),
|
"posting_users": g.db.query(Submission.author_id).distinct().count(),
|
||||||
|
|
Loading…
Reference in New Issue