forked from rDrama/rDrama
dfs
parent
c6af09087f
commit
f42a6018ce
|
@ -175,7 +175,7 @@ class Comment(Base):
|
|||
def replies(self):
|
||||
r = self.__dict__.get("replies", None)
|
||||
if r: r = [x for x in r if not x.author.shadowbanned]
|
||||
if not r and r != []: r = sorted([x for x in self.child_comments if not x.author.shadowbanned and x.author_id != AUTOPOLLER_ACCOUNT], key=lambda x: x.score, reverse=True)
|
||||
if not r and r != []: r = sorted([x for x in self.child_comments if not x.author.shadowbanned and x.author_id != AUTOPOLLER_ACCOUNT], key=lambda x: x.score, reverse=True)
|
||||
return r
|
||||
|
||||
@replies.setter
|
||||
|
@ -193,7 +193,7 @@ class Comment(Base):
|
|||
@property
|
||||
def replies3(self):
|
||||
r = self.__dict__.get("replies", None)
|
||||
if not r and r != []: r = sorted([x for x in self.child_comments if x.author_id != AUTOPOLLER_ACCOUNT], key=lambda x: x.score, reverse=True)
|
||||
if not r and r != []: r = sorted([x for x in self.child_comments if x.author_id != AUTOPOLLER_ACCOUNT], key=lambda x: x.score, reverse=True)
|
||||
return r
|
||||
|
||||
@property
|
||||
|
@ -300,7 +300,7 @@ class Comment(Base):
|
|||
|
||||
if not body: return ""
|
||||
|
||||
t = time.time()
|
||||
t = time.time()
|
||||
body = censor_slurs(body, v)
|
||||
print(time.time() - t)
|
||||
|
||||
|
|
Loading…
Reference in New Issue