From 568b86011093e05ba195d922d69bc44d5ff05ebd Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 31 Dec 2021 19:59:24 +0200 Subject: [PATCH] fds --- files/routes/posts.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index 93caa29d8..ce96480f3 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -374,15 +374,15 @@ def morecomments(v, cid): ) output = [] - output2 = [] + dump = [] for c in comments.all(): comment = c[0] comment.voted = c[1] or 0 comment.is_blocking = c[2] or 0 comment.is_blocked = c[3] or 0 - if c[0].parent_comment_id == int(cid): output2.append(comment) - else: output.append(comment) - comments = output2 + if c[0].parent_comment_id == int(cid): output.append(comment) + else: dump.append(comment) + comments = output else: c = g.db.query(Comment).filter_by(id=cid).first() comments = c.replies