gfd
This commit is contained in:
parent
573c945d44
commit
6e9bdd7ef1
6 changed files with 60 additions and 48 deletions
|
@ -81,13 +81,13 @@ def stats():
|
|||
"total posts": g.db.query(Submission.id).count(),
|
||||
"posting users": g.db.query(Submission.author_id).distinct().count(),
|
||||
"listed posts": g.db.query(Submission.id).filter_by(is_banned=False).filter(Submission.deleted_utc == 0).count(),
|
||||
"removed posts": g.db.query(Submission.id).filter_by(is_banned=True).count(),
|
||||
"deleted posts": g.db.query(Submission.id).filter(Submission.deleted_utc > 0).count(),
|
||||
"removed posts (by admins)": g.db.query(Submission.id).filter_by(is_banned=True).count(),
|
||||
"deleted posts (by author)": g.db.query(Submission.id).filter(Submission.deleted_utc > 0).count(),
|
||||
"posts last 24h": g.db.query(Submission.id).filter(Submission.created_utc > day).count(),
|
||||
"total comments": g.db.query(Comment.id).filter(Comment.author_id.notin_((AUTOJANNY_ID,NOTIFICATIONS_ID))).count(),
|
||||
"commenting users": g.db.query(Comment.author_id).distinct().count(),
|
||||
"removed comments": g.db.query(Comment.id).filter_by(is_banned=True).count(),
|
||||
"deleted comments": g.db.query(Comment.id).filter(Comment.deleted_utc > 0).count(),
|
||||
"removed comments (by admins)": g.db.query(Comment.id).filter_by(is_banned=True).count(),
|
||||
"deleted comments (by author)": g.db.query(Comment.id).filter(Comment.deleted_utc > 0).count(),
|
||||
"comments last_24h": g.db.query(Comment.id).filter(Comment.created_utc > day, Comment.author_id.notin_((AUTOJANNY_ID,NOTIFICATIONS_ID))).count(),
|
||||
"post votes": g.db.query(Vote.id).count(),
|
||||
"post voting users": g.db.query(Vote.user_id).distinct().count(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue