sdf
This commit is contained in:
parent
b2342e4512
commit
a2594c8ad8
2 changed files with 3 additions and 2 deletions
|
@ -332,7 +332,8 @@ class Comment(Base):
|
|||
if v and v.shadowbanned and v.id == self.author_id and 86400 > time.time() - self.created_utc > 60:
|
||||
ti = int(time.time() - self.created_utc)/10
|
||||
maxupvotes = min(ti, 31)
|
||||
if self.upvotes < maxupvotes:
|
||||
rand = random.randint(1, maxupvotes)
|
||||
if self.upvotes < rand:
|
||||
self.upvotes += randint(0, 5)
|
||||
g.db.add(self)
|
||||
g.db.commit()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue