From d6fb2a307ba348299e9d1729647a1328dda39c38 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 5 Dec 2021 04:38:15 +0200 Subject: [PATCH] fdsfds --- files/routes/posts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index 9538edc26..bd60aa704 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -196,7 +196,7 @@ def post_id(pid, anything=None, v=None): count = 0 for comment in comments: comments2.append(comment) - count += g.db.query(Comment.id).filter_by(Comment.parent_submission == post.id, top_comment_id=comment.id).count() + 1 + count += g.db.query(Comment.id).filter_by(parent_submission=post.id, top_comment_id=comment.id).count() + 1 offset += 1 if count > 10: break