dfg
This commit is contained in:
parent
f13d800e77
commit
6e9be2817a
1 changed files with 3 additions and 0 deletions
|
@ -197,6 +197,9 @@ class Comment(Base):
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def replies(self):
|
def replies(self):
|
||||||
|
if self.id == 1313520:
|
||||||
|
print(self.replies2)
|
||||||
|
return []
|
||||||
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)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue