From c4a012f8ed5b831d130c1d24ac80b55058e8ad4e Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 23 Dec 2021 20:42:06 +0200 Subject: [PATCH] dfs --- files/routes/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/admin.py b/files/routes/admin.py index 0923a06a2..e6b1b8f2f 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -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:") 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() for vote in votes: add_notif(cid, vote.user.id)