fds
This commit is contained in:
parent
c4bdc39a0c
commit
25b20429dd
1 changed files with 5 additions and 5 deletions
|
@ -200,6 +200,11 @@ class Comment(Base):
|
||||||
if self.replies2 != None: return [x for x in self.replies2 if not x.author.shadowbanned]
|
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)
|
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
|
@property
|
||||||
def replies2(self):
|
def replies2(self):
|
||||||
return self.__dict__.get("replies2", None)
|
return self.__dict__.get("replies2", None)
|
||||||
|
@ -208,11 +213,6 @@ class Comment(Base):
|
||||||
def replies2(self, value):
|
def replies2(self, value):
|
||||||
self.__dict__["replies2"] = 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
|
@property
|
||||||
@lazy
|
@lazy
|
||||||
def shortlink(self):
|
def shortlink(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue