add child comments to joinedload

remotes/1693045480750635534/spooky-22
Aevann1 2022-07-02 11:59:26 +02:00
parent 7cb95ee2ca
commit b0d4465183
1 changed files with 2 additions and 1 deletions

View File

@ -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 = []