diff --git a/files/classes/comment.py b/files/classes/comment.py index 3ba3e094c..0cbda2736 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -74,7 +74,7 @@ class Comment(Base): @property @lazy def options(self): - return self.child_comments.filter_by(author_id = AUTOPOLLER_ACCOUNT) + return [x for x in self.child_comments if x.author_id == AUTOPOLLER_ACCOUNT] @property @lazy