From b0d44651831d02977a442eb9f66901759f0884dc Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 2 Jul 2022 11:59:26 +0200 Subject: [PATCH] add child comments to joinedload --- files/routes/posts.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index 1a14d9daa..55dcec8d2 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -175,7 +175,8 @@ def post_id(pid, anything=None, v=None, sub=None): joinedload(Comment.awards), joinedload(Comment.author), joinedload(Comment.options), - joinedload(Comment.options, CommentOption.votes) + joinedload(Comment.options, CommentOption.votes), + joinedload(Comment.child_comments) ) output = []