This commit is contained in:
Aevann1 2021-12-23 20:39:39 +02:00
parent 39a6db7f4e
commit 2628286601

View file

@ -57,7 +57,8 @@ def distribute(v, cid):
g.db.add(autobetter)
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 if x.id != cid)
cids = [x.id for x in post.bet_options]
cids.pop(cid)
votes = g.db.query(CommentVote).filter(CommentVote.comment_id.in_(cids)).all()
for vote in votes: add_notif(cid, vote.user.id)