add another stat

master
Aevann 2024-01-23 15:55:16 +02:00
parent df9f926666
commit 8192aad5c6
1 changed files with 2 additions and 1 deletions

View File

@ -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()),