fd
This commit is contained in:
parent
1000b250b5
commit
1fb9ebccb4
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ def stats():
|
||||||
"total downvotes": g.db.query(Vote.submission_id).filter_by(vote_type=-1).count() + g.db.query(CommentVote.comment_id).filter_by(vote_type=-1).count(),
|
"total downvotes": g.db.query(Vote.submission_id).filter_by(vote_type=-1).count() + g.db.query(CommentVote.comment_id).filter_by(vote_type=-1).count(),
|
||||||
"total awards": g.db.query(AwardRelationship.id).count(),
|
"total awards": g.db.query(AwardRelationship.id).count(),
|
||||||
"awards given": g.db.query(AwardRelationship.id).filter(or_(AwardRelationship.submission_id != None, AwardRelationship.comment_id != None)).count(),
|
"awards given": g.db.query(AwardRelationship.id).filter(or_(AwardRelationship.submission_id != None, AwardRelationship.comment_id != None)).count(),
|
||||||
"users who posted/commented/voted in the past 7 days": len(active_users)
|
"users who posted, commented, or voted in the past 7 days": len(active_users)
|
||||||
}
|
}
|
||||||
|
|
||||||
@app.get("/chart")
|
@app.get("/chart")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue