remove 2 useless stats that took 3 and 9 seconds respectively

remotes/1693176582716663532/tmp_refs/heads/watchparty
Aevann1 2022-11-02 06:59:23 +02:00
parent 0008acbabe
commit 17038e31da
1 changed files with 0 additions and 2 deletions

View File

@ -119,9 +119,7 @@ def stats(site=None):
"deleted comments (by author)": g.db.query(Comment).filter(Comment.deleted_utc > 0).count(),
"comments last_24h": g.db.query(Comment).filter(Comment.created_utc > day, Comment.author_id != AUTOJANNY_ID).count(),
"post votes": g.db.query(Vote).count(),
"post voting users": g.db.query(Vote.user_id).distinct().count(),
"comment votes": g.db.query(CommentVote).count(),
"comment voting users": g.db.query(CommentVote.user_id).distinct().count(),
"total upvotes": g.db.query(Vote).filter_by(vote_type=1).count() + g.db.query(CommentVote).filter_by(vote_type=1).count(),
"total downvotes": g.db.query(Vote).filter_by(vote_type=-1).count() + g.db.query(CommentVote).filter_by(vote_type=-1).count(),
"total awards": g.db.query(AwardRelationship).count(),