fd
This commit is contained in:
parent
b89a1f2613
commit
886055216b
1 changed files with 1 additions and 1 deletions
|
@ -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 = [x.parent_comment_id for x in output if x.parent_comment_id]
|
||||||
parents = get_comments(parents, v=v)
|
parents = get_comments(parents, v=v)
|
||||||
parents = {x.id: x for x in parents}
|
parents = {x.id: x for x in parents}
|
||||||
for c in output: c.sex = parents.get(c.parent_comment_id)
|
for c in output: parents.get(c.parent_comment_id)
|
||||||
|
|
||||||
return sorted(output, key=lambda x: cids.index(x.id))
|
return sorted(output, key=lambda x: cids.index(x.id))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue