This commit is contained in:
Aevann1 2021-11-12 00:52:52 +02:00
parent e43ec3f9fa
commit c121a26e61

View file

@ -243,7 +243,7 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, filter_words='
rand = random.randint(5,20) rand = random.randint(5,20)
if post.score < rand: post.upvotes += 1 if post.score < rand: post.upvotes += 1
g.db.add(post) g.db.add(post)
g.db.commit() g.db.commit()
pins = g.db.query(Submission).filter(Submission.stickied != None, Submission.is_banned == False) pins = g.db.query(Submission).filter(Submission.stickied != None, Submission.is_banned == False)
if v and v.admin_level == 0: if v and v.admin_level == 0: