forked from rDrama/rDrama
1
0
Fork 0

Rename ranking constant by Capy request.

master
Snakes 2022-11-20 06:31:16 -05:00
parent db329f487f
commit 23ff5450d6
Signed by: Snakes
GPG Key ID: E745A82778055C7E
2 changed files with 3 additions and 3 deletions

View File

@ -1665,16 +1665,16 @@ if SITE_NAME == 'rDrama':
'anime', 'anime',
'gaybros', 'gaybros',
'againsthateholes', 'againsthateholes',
'schizocel',
'masterbaiters', 'masterbaiters',
'changelog', 'changelog',
} }
BOOSTED_HOLES_UNNERFED = { UNNERFED_HOLES = {
'space', 'space',
'istory', 'istory',
'dino', 'dino',
'slackernews', 'slackernews',
'schizocel',
} }
BOOSTED_USERS = { BOOSTED_USERS = {

View File

@ -150,7 +150,7 @@ def vote_post_comment(target_id, new, v, cls, vote_cls):
elif cls == Submission and target.author.id not in BOOSTED_USERS_EXCLUDED: elif cls == Submission and target.author.id not in BOOSTED_USERS_EXCLUDED:
if target.domain.endswith('.win') or target.domain in BOOSTED_SITES or target.sub in BOOSTED_HOLES: if target.domain.endswith('.win') or target.domain in BOOSTED_SITES or target.sub in BOOSTED_HOLES:
mul = 2 mul = 2
elif target.sub and target.sub not in BOOSTED_HOLES_UNNERFED: elif target.sub and target.sub not in UNNERFED_HOLES:
mul = 0.7 mul = 0.7
elif not target.sub and target.body_html: elif not target.sub and target.body_html:
x = target.body_html.count('" target="_blank" rel="nofollow noopener">') x = target.body_html.count('" target="_blank" rel="nofollow noopener">')