forked from MarseyWorld/MarseyWorld
add another stat
parent
df9f926666
commit
8192aad5c6
|
@ -98,7 +98,8 @@ def stats():
|
|||
"Users with a private profile": "{:,}".format(g.db.query(User).filter_by(is_private=True).count()),
|
||||
"Users with a verified email": "{:,}".format(g.db.query(User).filter_by(email_verified=True).count()),
|
||||
"Coins in circulation": "{:,}".format(g.db.query(func.sum(User.coins)).scalar()),
|
||||
"Total shop sales": "{:,}".format(g.db.query(func.sum(User.coins_spent)).scalar()),
|
||||
"Total award sales": "{:,}".format(g.db.query(func.sum(User.coins_spent)).scalar()),
|
||||
"Total hat sales": "{:,}".format(g.db.query(func.sum(User.coins_spent_on_hats)).scalar()),
|
||||
"Signups last 24h": "{:,}".format(g.db.query(User).filter(User.created_utc > day).count()),
|
||||
"Total posts": "{:,}".format(g.db.query(Post).count()),
|
||||
"Posting users": "{:,}".format(g.db.query(Post.author_id).distinct().count()),
|
||||
|
|
Loading…
Reference in New Issue