forked from MarseyWorld/MarseyWorld
remove 2 useless stats that took 3 and 9 seconds respectively
parent
0008acbabe
commit
17038e31da
|
@ -119,9 +119,7 @@ def stats(site=None):
|
||||||
"deleted comments (by author)": g.db.query(Comment).filter(Comment.deleted_utc > 0).count(),
|
"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(),
|
"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 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 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 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 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(),
|
"total awards": g.db.query(AwardRelationship).count(),
|
||||||
|
|
Loading…
Reference in New Issue