From 9f9e574363ea956eedf48e9f85db8166671e6f38 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 4 Feb 2022 07:42:24 +0200 Subject: [PATCH] fds --- files/classes/comment.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/files/classes/comment.py b/files/classes/comment.py index a4fbd92af..bf0dcac21 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -200,6 +200,11 @@ class Comment(Base): if self.replies2 != None: return [x for x in self.replies2 if not x.author.shadowbanned] return sorted((x for x in self.child_comments if x.author and not x.author.shadowbanned and x.author_id not in (AUTOPOLLER_ID, AUTOBETTER_ID)), key=lambda x: x.realupvotes, reverse=True) + @property + def replies3(self): + if self.replies2 != None: return self.replies2 + return sorted((x for x in self.child_comments if x.author_id not in (AUTOPOLLER_ID, AUTOBETTER_ID)), key=lambda x: x.realupvotes, reverse=True) + @property def replies2(self): return self.__dict__.get("replies2", None) @@ -208,11 +213,6 @@ class Comment(Base): def replies2(self, value): self.__dict__["replies2"] = value - @property - def replies3(self): - if self.replies2 != None: return self.replies2 - return sorted((x for x in self.child_comments if x.author_id not in (AUTOPOLLER_ID, AUTOBETTER_ID)), key=lambda x: x.realupvotes, reverse=True) - @property @lazy def shortlink(self):