This commit is contained in:
Aevann1 2022-04-16 18:44:32 +02:00
parent 0a963c00a8
commit e5e27d4492

View file

@ -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