This commit is contained in:
Aevann1 2021-12-23 20:30:34 +02:00
parent 0447748356
commit af1d76b4d1

View file

@ -41,6 +41,8 @@ def distribute(v, cid):
pool = 0 pool = 0
for option in post.bet_options: pool += option.upvotes for option in post.bet_options: pool += option.upvotes
pool *= 200
votes = g.db.query(CommentVote).filter_by(comment_id=cid) votes = g.db.query(CommentVote).filter_by(comment_id=cid)
coinsperperson = int(pool / votes.count()) coinsperperson = int(pool / votes.count())