From 053ef9fd6696353428fea1214ba002c6b0dd4a39 Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 28 Nov 2022 01:12:38 +0200 Subject: [PATCH] fix error on votes on localhost --- 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 ad6e5a282..c4d53ce2a 100644 --- a/files/routes/votes.py +++ b/files/routes/votes.py @@ -141,7 +141,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_NAME == 'rDrama': + if SITE == 'rdrama.net': target.realupvotes = get_vote_count(0, True) # first arg is ignored here mul = 1