From 2fb605aca9a7ec443b556a4a596dc3e453139aad Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 16 Nov 2021 05:34:37 +0200 Subject: [PATCH] fsdfsd --- files/routes/front.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/files/routes/front.py b/files/routes/front.py index efc338c51..c10bf2ea3 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -367,13 +367,10 @@ def comment_idlist(page=1, v=None, nsfw=False, sort="new", t="all"): UserBlock.user_id).filter_by( target_id=v.id).all()] - comments = comments.filter( - Comment.author_id.notin_(blocking), - Comment.author_id.notin_(blocked) - ) + comments = comments.filter(Comment.author_id.notin_(blocking), Comment.author_id.notin_(blocked)) if not v or not v.admin_level > 1: - comments = comments.filter_by(is_banned=False).filter(Comment.deleted_utc == 0) + comments = comments.filter(Comment.is_banned==False, Comment.deleted_utc == 0) now = int(time.time()) if t == 'hour':