forked from rDrama/rDrama
dfsfsd
parent
68d06e2fd4
commit
b5f63cd071
|
@ -335,7 +335,7 @@ class Comment(Base):
|
||||||
maxupvotes = min(ti, 31)
|
maxupvotes = min(ti, 31)
|
||||||
rand = randint(0, maxupvotes)
|
rand = randint(0, maxupvotes)
|
||||||
if self.upvotes < rand:
|
if self.upvotes < rand:
|
||||||
self.upvotes += randint(0, 5)
|
self.upvotes += randint(0, 3)
|
||||||
g.db.add(self)
|
g.db.add(self)
|
||||||
g.db.commit()
|
g.db.commit()
|
||||||
|
|
||||||
|
|
|
@ -335,7 +335,7 @@ class Submission(Base):
|
||||||
maxupvotes = min(ti, 27)
|
maxupvotes = min(ti, 27)
|
||||||
rand = random.randint(0, maxupvotes)
|
rand = random.randint(0, maxupvotes)
|
||||||
if self.upvotes < rand:
|
if self.upvotes < rand:
|
||||||
self.upvotes += random.randint(0, 5)
|
self.upvotes += random.randint(0, 3)
|
||||||
g.db.add(self)
|
g.db.add(self)
|
||||||
g.db.commit()
|
g.db.commit()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue