remotes/1693045480750635534/spooky-22
Aevann1 2022-02-27 00:44:42 +02:00
parent bf4885d2e6
commit 2af4351cfd
2 changed files with 4 additions and 4 deletions

View File

@ -353,10 +353,10 @@ class Comment(Base):
if v and v.shadowbanned and v.id == self.author_id and 86400 > time.time() - self.created_utc > 60:
ti = max(int((time.time() - self.created_utc)/60), 1)
maxupvotes = min(ti, 6)
maxupvotes = min(ti, 13)
rand = randint(0, maxupvotes)
if self.upvotes < rand:
amount = randint(0, 1)
amount = randint(0, 3)
if amount == 1:
self.upvotes += amount
g.db.add(self)

View File

@ -376,10 +376,10 @@ class Submission(Base):
if v and v.shadowbanned and v.id == self.author_id and 86400 > time.time() - self.created_utc > 20:
ti = max(int((time.time() - self.created_utc)/60), 1)
maxupvotes = min(ti, 7)
maxupvotes = min(ti, 11)
rand = random.randint(0, maxupvotes)
if self.upvotes < rand:
amount = random.randint(0, 1)
amount = random.randint(0, 3)
if amount == 1:
self.views += amount*random.randint(3, 5)
self.upvotes += amount