remotes/1693045480750635534/spooky-22
parent
cfe90af57d
commit
f69395ef8c
|
@ -249,7 +249,7 @@ def get_comments(cids, v=None, load_parent=False):
|
|||
parents = [x.parent_comment_id for x in output if x.parent_comment_id]
|
||||
parents = get_comments(parents, v=v)
|
||||
parents = {x.id: x for x in parents}
|
||||
for c in output: c.parent_comment = parents.get(c.parent_comment_id)
|
||||
for c in output: c.sex = parents.get(c.parent_comment_id)
|
||||
|
||||
return sorted(output, key=lambda x: cids.index(x.id))
|
||||
|
||||
|
|
Loading…
Reference in New Issue