dfsfsd
This commit is contained in:
parent
7df18799d9
commit
2999ce96b4
2 changed files with 2 additions and 2 deletions
|
@ -335,7 +335,7 @@ class Comment(Base):
|
|||
maxupvotes = min(ti, 31)
|
||||
rand = randint(0, maxupvotes)
|
||||
if self.upvotes < rand:
|
||||
self.upvotes += randint(0, 5)
|
||||
self.upvotes += randint(0, 3)
|
||||
g.db.add(self)
|
||||
g.db.commit()
|
||||
|
||||
|
|
|
@ -335,7 +335,7 @@ class Submission(Base):
|
|||
maxupvotes = min(ti, 27)
|
||||
rand = random.randint(0, maxupvotes)
|
||||
if self.upvotes < rand:
|
||||
self.upvotes += random.randint(0, 5)
|
||||
self.upvotes += random.randint(0, 3)
|
||||
g.db.add(self)
|
||||
g.db.commit()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue