From daa435bac68ea373a34080b35bff643e0465fad3 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 26 Jul 2021 21:58:24 +0200 Subject: [PATCH] dffd --- drama/routes/votes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drama/routes/votes.py b/drama/routes/votes.py index 08b026e882..6df308f7c4 100644 --- a/drama/routes/votes.py +++ b/drama/routes/votes.py @@ -150,7 +150,7 @@ def api_vote_comment(comment_id, new, v): elif existing.vote_type != 0 and new == 0: comment.author.dramacoins -= 1 g.db.add(comment.author) - existing.change_to(new) + existing.vote_type = new g.db.add(existing) else: if new != 0: