This commit is contained in:
Aevann1 2021-08-06 17:36:54 +02:00
parent 937a68f8a2
commit b2bfcb5e90
2 changed files with 4 additions and 9 deletions

View file

@ -323,7 +323,7 @@ def changelog(v):
def random_post(v):
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
x = g.db.query(Submission).filter(Submission.deleted_utc == 0, Submission.is_banned == False, Submission.score > 20)
x = g.db.query(Submission).filter(Submission.deleted_utc == 0, Submission.is_banned == False)
total = x.count()
n = random.randint(0, total - 1)