From 748767ec116a55f54083f415c88d6c30695a42e9 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 23 Dec 2021 20:29:38 +0200 Subject: [PATCH] sdffds --- 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 f870c5075b..64559690b9 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -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!"