From ee56da59698b53dd40478c591f9dc2e2ea54af89 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 5 Dec 2021 04:31:23 +0200 Subject: [PATCH] fdsdsf --- files/routes/posts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index f483ede15..9a68e82de 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -195,9 +195,9 @@ 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(top_comment_id=comment.id).count() + count += g.db.query(Comment.id).filter_by(top_comment_id=comment.id).count() + 1 offset += 1 - if count > 50: break + if count > 10: break if len(comments) == len(comments2): offset = None