From e18fc9c7eb4e7b88396ea6b20a68e30b835d30d4 Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 3 Aug 2023 05:52:29 +0300 Subject: [PATCH] do this https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/4642870#context --- files/routes/votes.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/routes/votes.py b/files/routes/votes.py index ec6d85feb..bef4b833e 100644 --- a/files/routes/votes.py +++ b/files/routes/votes.py @@ -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