diff --git a/files/routes/front.py b/files/routes/front.py index e2fb389008..bdaf5e7088 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -103,11 +103,11 @@ def notifications(v): g.db.commit() - all = set([x[0] for x in g.db.query(Notification.comment_id).join(Comment, Notification.comment_id == Comment.id).filter(Comment.is_banned == False, + all = set(x[0] for x in g.db.query(Notification.comment_id).join(Comment, Notification.comment_id == Comment.id).filter(Comment.is_banned == False, Comment.deleted_utc == 0, Comment.author_id != AUTOJANNY_ID, Comment.body_html.notlike('