forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2022-02-04 07:42:24 +02:00
parent 2116309b8b
commit 9f9e574363
1 changed files with 5 additions and 5 deletions

View File

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