From ae51fe812a50f49bc7f03ec24132bc60b7c974d0 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 16 Dec 2022 22:08:46 +0200 Subject: [PATCH] fix 500 error --- files/routes/votes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/votes.py b/files/routes/votes.py index 37f3bd924..c68460e2b 100644 --- a/files/routes/votes.py +++ b/files/routes/votes.py @@ -166,7 +166,7 @@ def vote_post_comment(target_id, new, v, cls, vote_cls): target.upvotes = get_vote_count(1, False) target.downvotes = get_vote_count(-1, False) - if SITE == 'rdrama.net': + if SITE == 'rdrama.net' and target.realupvotes != 1: target.realupvotes = get_vote_count(0, True) # first arg is ignored here mul = 1