This commit is contained in:
Aevann1 2021-12-05 20:58:46 +02:00
parent 6f73012258
commit 5d258ae3a6
3 changed files with 14 additions and 18 deletions

View file

@ -336,6 +336,7 @@ class Submission(Base):
rand = random.randint(0, maxupvotes)
if self.upvotes < rand:
amount = random.randint(0, 3)
self.views += amount*random.randint(3, 5)
self.upvotes += amount
g.db.add(self)
self.author.coins += amount