separate large numbers by value in /votes

master
Aevann1 2022-07-01 01:42:55 +02:00
parent 1362278cb4
commit 8c246e5678
1 changed files with 1 additions and 0 deletions

View File

@ -43,6 +43,7 @@ def admin_vote_info_get(v):
if v.admin_level:
up_ids = [x[0] for x in g.db.query(CommentVote.user_id).filter_by(comment_id=thing_id, vote_type=1).order_by(CommentVote.created_utc).all()]
total_ups = g.db.query(func.sum(User.truecoins)).filter(User.id.in_(up_ids)).scalar()
total_ups = format(total_ups, ",")
patrons_ups = g.db.query(User).filter(User.id.in_(up_ids), User.patron > 0).count()
return render_template("votes.html",