fd
This commit is contained in:
parent
937a68f8a2
commit
b2bfcb5e90
2 changed files with 4 additions and 9 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue