forked from MarseyWorld/MarseyWorld
master
parent
0799d61563
commit
1d8c47b6f0
|
@ -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(),
|
||||
|
|
Loading…
Reference in New Issue