sdf
This commit is contained in:
parent
b2342e4512
commit
a2594c8ad8
2 changed files with 3 additions and 2 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue