From a50544d86a8a2bfa87ba02d8bd768d63edb08526 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 23 Jun 2022 00:25:10 +0200 Subject: [PATCH] fixing "more comments" button appearing when there's no more comments --- files/classes/comment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/classes/comment.py b/files/classes/comment.py index c08022c83c..b3f680ee48 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -246,7 +246,7 @@ class Comment(Base): return self.child_comments.order_by(Comment.id).all() comments = self.child_comments.filter(Comment.author_id.notin_((AUTOPOLLER_ID, AUTOBETTER_ID, AUTOCHOICE_ID))) - return sort_comments(sort, comments) + return sort_comments(sort, comments).all() @property