diff --git a/files/routes/admin.py b/files/routes/admin.py index 64559690b..5e6b236c8 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -41,6 +41,8 @@ def distribute(v, cid): pool = 0 for option in post.bet_options: pool += option.upvotes + pool *= 200 + votes = g.db.query(CommentVote).filter_by(comment_id=cid) coinsperperson = int(pool / votes.count())