remotes/1693045480750635534/spooky-22
fireworks88 2021-07-28 11:31:16 +02:00
parent 205d8aefe7
commit 9de59c6a0a
2 changed files with 4 additions and 3 deletions

View File

@ -13,4 +13,5 @@ from .domains import *
from .subscriptions import *
from .agents import *
from .lolwtf import *
from .mod_logs import *
from .mod_logs import *
from .award import *

View File

@ -257,10 +257,10 @@ def participation_stats(v):
"comments_last_24h": g.db.query(Comment).filter(Comment.created_utc > day).count(),
"post_votes": g.db.query(Vote).count(),
"post_voting_users": g.db.query(Vote.user_id).distinct().count(),
"post_votes_last_24h": g.db.query(Vote).filter(Vote.created_utc > day).count(),
"comment_votes": g.db.query(CommentVote).count(),
"comment_voting_users": g.db.query(CommentVote.user_id).distinct().count(),
"comment_votes_last_24h": g.db.query(CommentVote).filter(CommentVote.created_utc > day).count()
"total_awards": g.db.query(AwardRelationship).count(),
"awards_given": g.db.query(AwardRelationship).filter(AwardRelationship.submission_id == None, AwardRelationship.comment_id == None).count()
}