This commit is contained in:
Aevann1 2021-08-23 20:47:08 +02:00
parent b4bd44d4c6
commit 19718a4d95

View file

@ -114,8 +114,9 @@ class Comment(Base, Age_times, Scores, Stndrd, Fuzzing):
@property
def replies(self):
r = self.__dict__.get("replies", None)
if not r and r != []: r = sorted([x for x in self.child_comments if not x.author.shadowbanned], key=lambda x: x.score, reverse=True)
#r = self.__dict__.get("replies", None)
#if not r and r != []:
r = sorted([x for x in self.child_comments if not x.author.shadowbanned], key=lambda x: x.score, reverse=True)
return r
@replies.setter