From 2f44fabd22520aa6d0b85379b67f7bcca5daeb56 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 23 Dec 2021 20:39:39 +0200 Subject: [PATCH] dsffsd --- files/routes/admin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/routes/admin.py b/files/routes/admin.py index 2e0b313e6f..5190c85ebd 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -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)