From 9d9e13002270eb87a6e9e2039f9f61da2977d60c Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 3 Apr 2022 17:27:17 +0200 Subject: [PATCH] fds --- files/routes/front.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/front.py b/files/routes/front.py index 1fa4e1c95..0f009259e 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -47,7 +47,7 @@ def notifications(v): next_exists = (len(comments) > 25) comments = comments[:25] elif messages: - comments = g.db.query(Comment).filter(or_(Comment.author_id==v.id, Comment.sentto==v.id), Comment.parent_submission == None, not_(Comment.child_comments.any())).order_by(Comment.id.desc()).offset(25*(page-1)).limit(26).all() + comments = g.db.query(Comment).filter(Comment.sentto != None, or_(Comment.author_id==v.id, Comment.sentto==v.id), Comment.parent_submission == None, not_(Comment.child_comments.any())).order_by(Comment.id.desc()).offset(25*(page-1)).limit(26).all() next_exists = (len(comments) > 25) comments = comments[:25] elif posts: