From 33eb999df946b7ee08ee906d216aa0ed83fad521 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 6 Jan 2022 19:23:36 +0200 Subject: [PATCH] fd --- 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 6477fdc10..e03a5865b 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -34,7 +34,7 @@ def notifications(v): comments = comments[:25] elif messages: - comments = g.db.query(Comment).distinct(Comment.parent_comment_id).filter(or_(Comment.author_id==v.id, Comment.sentto==v.id), Comment.parent_submission == None, not_(Comment.child_comments.any())).order_by(Comment.parent_comment_id.desc()).offset(25*(page-1)).limit(26).all() + comments = g.db.query(Comment).distinct(Comment.parent_comment_id).filter(or_(Comment.author_id==v.id, Comment.sentto==v.id), Comment.parent_submission == None, Comment.sentto != None, not_(Comment.child_comments.any())).order_by(Comment.parent_comment_id.desc()).offset(25*(page-1)).limit(26).all() next_exists = (len(comments) > 25) comments = comments[:25]