This commit is contained in:
Aevann1 2021-11-22 16:32:39 +02:00
parent b2342e4512
commit a2594c8ad8
2 changed files with 3 additions and 2 deletions

View file

@ -336,7 +336,7 @@ class Submission(Base):
maxupvotes = min(ti, 27)
rand = random.randint(1, maxupvotes)
if self.upvotes < rand:
self.upvotes += random.randint(0,5)
self.upvotes += random.randint(0, 5)
g.db.add(self)
g.db.commit()