sfdfsd
This commit is contained in:
parent
6f73012258
commit
5d258ae3a6
3 changed files with 14 additions and 18 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue