From 6156c78df6c285134644baae4911afec03fd652a Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 16 Apr 2022 18:44:32 +0200 Subject: [PATCH] fds --- files/classes/comment.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/classes/comment.py b/files/classes/comment.py index aaec8f889..ec6377171 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -227,6 +227,8 @@ class Comment(Base): @property def replies3(self): if self.replies2 != None: return self.replies2 + if not self.parent_submission: + return sorted(self.child_comments, key=lambda x: x.created_utc) return sorted((x for x in self.child_comments if x.author_id not in (AUTOPOLLER_ID, AUTOBETTER_ID, AUTOCHOICE_ID)), key=lambda x: x.realupvotes, reverse=True) @property