master
Aevann1 2021-12-23 20:29:38 +02:00
parent b03a9a1a54
commit 748767ec11
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ def distribute(v, cid):
cid = notif_comment(f"You lost the 200 coins you bet on [{post.permalink}]({post.permalink}) :marseylaugh:")
cids = (x.id for x in post.bet_options)
votes = g.db.query(CommentVote).filter(CommentVote.comment_id.in_(cids)).all()
for vote in votes: dd_notif(cid, vote.user.id)
for vote in votes: add_notif(cid, vote.user.id)
g.db.commit()
return f"Each winner has received {coinsperperson} coins!"