master
Aevann1 2022-03-23 21:33:27 +02:00
parent 8e935cc560
commit 0e64bdb645
1 changed files with 1 additions and 1 deletions

View File

@ -464,7 +464,7 @@ def changeloglist(v=None, sort="new", page=1 ,t="all"):
@auth_required
def random_post(v):
x = g.db.query(Submission).filter(Submission.deleted_utc == 0, Submission.is_banned == False)
x = g.db.query(Submission).filter(Submission.deleted_utc == 0, Submission.is_banned == False, Submission.private == False)
total = x.count()
n = random.randint(1, total - 2)