diff options
author | HombreLaser <sebastian-440@live.com> | 2024-02-09 17:29:34 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2024-02-09 17:29:34 -0600 |
commit | 1fdacee131a6840329fd6746cd7511c3fb16b829 (patch) | |
tree | 9713982aed945300ca5508cdf005a75943cb97d4 /src/queries | |
parent | 2a16eeb8df3fab2715b95efbbdc69b7c03a6a746 (diff) |
Fix comments rendering
Diffstat (limited to 'src/queries')
-rw-r--r-- | src/queries/comments_query.py | 2 |
1 files changed, 1 insertions, 1 deletions
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()), ) |