summaryrefslogtreecommitdiff
path: root/src/queries
diff options
context:
space:
mode:
Diffstat (limited to 'src/queries')
-rw-r--r--src/queries/comments_query.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/queries/comments_query.py b/src/queries/comments_query.py
index 4bdf31f..6873df0 100644
--- a/src/queries/comments_query.py
+++ b/src/queries/comments_query.py
@@ -12,5 +12,5 @@ class CommentsQuery(BaseQuery):
def comments_of_post(self, post):
return db.paginate(
- db.select(Comment).where(Comment.post == self._post),
+ db.select(Comment).where(Comment.post == post),
)