From 1fdacee131a6840329fd6746cd7511c3fb16b829 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Fri, 9 Feb 2024 17:29:34 -0600 Subject: Fix comments rendering --- src/queries/comments_query.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/queries/comments_query.py') diff --git a/src/queries/comments_query.py b/src/queries/comments_query.py index 6873df0..dca4694 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 == post), + db.select(Comment).where(Comment.post == post).order_by(Comment.created_at.desc()), ) -- cgit v1.2.3