forked from rDrama/rDrama
Rename ranking constant by Capy request.
parent
db329f487f
commit
23ff5450d6
|
@ -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 = {
|
||||||
|
|
|
@ -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">')
|
||||||
|
|
Loading…
Reference in New Issue