forked from rDrama/rDrama
1
0
Fork 0

scratch that

master
Aevann1 2022-05-25 19:09:26 +02:00
parent 5b1477acfc
commit 6febbc4858
1 changed files with 3 additions and 3 deletions

View File

@ -218,9 +218,9 @@ class Comment(Base):
def replies(self):
if self.replies2 != None: return [x for x in self.replies2 if not x.author.shadowbanned]
if not self.parent_submission:
return self.child_comments.join(User, User.id == Comment.author_id).filter(User.shadowbanned == None).order_by(Comment.id).all()
return self.child_comments.join(User, User.id == Comment.author_id).filter(User.shadowbanned == None, Comment.author_id.notin_((AUTOPOLLER_ID, AUTOBETTER_ID, AUTOCHOICE_ID))).order_by(Comment.realupvotes.desc()).all()
return [x for x in self.child_comments.order_by(Comment.id) if not x.author.shadowbanned]
return [x for x in self.child_comments.filter(Comment.author_id.notin_((AUTOPOLLER_ID, AUTOBETTER_ID, AUTOCHOICE_ID))).order_by(Comment.realupvotes.desc()) if not x.author.shadowbanned]
@property
def replies3(self):