diff --git a/files/routes/front.py b/files/routes/front.py index 74d0d2a1e2..2d160dedb4 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -104,11 +104,11 @@ def notifications(v): print("1: " + str(time.time() - t), flush=True) - all = g.db.query(Notification.comment_id).join(Comment, Notification.comment_id == Comment.id).filter(Comment.is_banned == False, + all = [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('