From f50d42cc93996b3b89c5b72f01dfb2e7bea4e093 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 22 Nov 2021 18:44:59 +0200 Subject: [PATCH] fdsfds --- files/classes/comment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/classes/comment.py b/files/classes/comment.py index 74701e789..3027b52b1 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -332,7 +332,7 @@ class Comment(Base): if v and v.shadowbanned and v.id == self.author_id and 86400 > time.time() - self.created_utc > 60: ti = int(time.time() - self.created_utc)/10 maxupvotes = min(ti, 31) - rand = random.randint(1, maxupvotes) + rand = randint(1, maxupvotes) if self.upvotes < rand: self.upvotes += randint(0, 5) g.db.add(self)