forked from rDrama/rDrama
1
0
Fork 0

boost countryclub

master
Aevann 2024-02-18 16:12:11 +02:00
parent 975dade5c1
commit fe0e6c9799
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ def vote_post_comment(target_id, new, v, cls, vote_cls):
elif SITE == 'rdrama.net' and cls == Comment and 6 <= datetime.fromtimestamp(target.created_utc).hour <= 10:
mul = 2
if cls == Post and target.effortpost:
if cls == Post and (target.effortpost or target.hole == 'countryclub'):
mul *= 2
target.realupvotes = floor(target.realupvotes * mul)