forked from rDrama/rDrama
fds
parent
455264c223
commit
3d20954b16
|
@ -197,10 +197,10 @@ class Comment(Base):
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def replies(self):
|
def replies(self):
|
||||||
print(self.id)
|
print(self.id, flush=True)
|
||||||
if self.id == 1313520:
|
if self.id == 1313520:
|
||||||
print('wtf')
|
print('wtf')
|
||||||
print(self.replies2)
|
print(self.replies2, flush=True)
|
||||||
return []
|
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…
Reference in New Issue