This commit is contained in:
Aevann1 2021-08-23 20:52:56 +02:00
parent f8e788b49d
commit 48faa851df
2 changed files with 19 additions and 7 deletions

View file

@ -111,7 +111,6 @@ class Comment(Base, Age_times, Scores, Stndrd, Fuzzing):
if self.parent_comment_id: return f"t3_{self.parent_comment_id}"
elif self.parent_submission: return f"t2_{self.parent_submission}"
@property
@lazy
def replies(self):
@ -131,6 +130,13 @@ class Comment(Base, Age_times, Scores, Stndrd, Fuzzing):
def replies2(self, value):
self.__dict__["replies2"] = value
@property
@lazy
def replies3(self):
r = self.__dict__.get("replies", None)
if not r and r != []: r = sorted([x for x in self.child_comments], key=lambda x: x.score, reverse=True)
return r
@property
@lazy
def permalink(self):