Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Set children on MoreRecursion objects.
Browse files Browse the repository at this point in the history
This ensures that the json representation will have valid name,
id, and children.
  • Loading branch information
bsimpson63 committed Mar 3, 2014
1 parent 601684a commit fa83c92
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions r2/r2/models/builder.py
Expand Up @@ -780,6 +780,7 @@ def get_items(self):
parent_id=parent_id))
else:
w = more_recursions[parent_id]
w.children.append(comment_id)
more_recursions[parent_id] = w

timer.intermediate("pick_comments")
Expand Down

0 comments on commit fa83c92

Please sign in to comment.