forked from MarseyWorld/MarseyWorld
do this https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/4642870#context
parent
67a9d41e45
commit
e18fc9c7eb
|
@ -8,6 +8,7 @@ from files.__main__ import app, limiter
|
|||
from files.routes.routehelpers import get_alt_graph
|
||||
|
||||
from math import floor
|
||||
from datetime import datetime
|
||||
|
||||
def vote_post_comment(target_id, new, v, cls, vote_cls):
|
||||
if new == "-1" and DISABLE_DOWNVOTES: abort(403)
|
||||
|
@ -134,6 +135,8 @@ def vote_post_comment(target_id, new, v, cls, vote_cls):
|
|||
mul = 2
|
||||
elif target.sub in STEALTH_HOLES or target.sub == 'countryclub':
|
||||
mul = 2
|
||||
elif 6 <= datetime.fromtimestamp(target.created_utc).hour <= 10:
|
||||
mul = 2
|
||||
elif target.sub in BOOSTED_HOLES:
|
||||
mul = 1.25
|
||||
|
||||
|
|
Loading…
Reference in New Issue