From ec803e1a68c61dc8fcd1c52eaa9ecb5b2b866304 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 25 Dec 2022 02:54:53 +0200 Subject: [PATCH] minor syntax change --- files/routes/votes.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/files/routes/votes.py b/files/routes/votes.py index f90f0cd36..dd831b3f2 100644 --- a/files/routes/votes.py +++ b/files/routes/votes.py @@ -156,7 +156,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_NAME == 'rDrama': target.realupvotes = get_vote_count(0, True) # first arg is ignored here mul = 1 @@ -167,9 +167,7 @@ def vote_post_comment(target_id, new, v, cls, vote_cls): or (target.domain in BOOSTED_SITES and not target.url.startswith('/')) or target.sub in BOOSTED_HOLES): mul = 2 - elif (not target.sub - and target.body_html - and target.author.id not in {8768,3402,5214,12719}): + elif not target.sub and target.body_html and target.author.id not in {8768,3402,5214,12719}: x = target.body_html.count('" target="_blank" rel="nofollow noopener">') x += target.body_html.count('