dfs
parent
7b96a30333
commit
c4a012f8ed
|
@ -59,7 +59,7 @@ def distribute(v, cid):
|
||||||
|
|
||||||
cid = notif_comment(f"You lost the 200 coins you bet on [{post.permalink}]({post.permalink}) :marseylaugh:")
|
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]
|
cids = [x.id for x in post.bet_options]
|
||||||
cids.pop(cid)
|
cids.remove(cid)
|
||||||
votes = g.db.query(CommentVote).filter(CommentVote.comment_id.in_(cids)).all()
|
votes = g.db.query(CommentVote).filter(CommentVote.comment_id.in_(cids)).all()
|
||||||
for vote in votes: add_notif(cid, vote.user.id)
|
for vote in votes: add_notif(cid, vote.user.id)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue