From fa83c92339cc8b77029ba86e6bb731f5382f35db Mon Sep 17 00:00:00 2001 From: Brian Simpson Date: Thu, 27 Feb 2014 12:44:11 -0500 Subject: [PATCH] Set children on MoreRecursion objects. This ensures that the json representation will have valid name, id, and children. --- r2/r2/models/builder.py | 1 + 1 file changed, 1 insertion(+) diff --git a/r2/r2/models/builder.py b/r2/r2/models/builder.py index 9671602a5..961ba0d89 100755 --- a/r2/r2/models/builder.py +++ b/r2/r2/models/builder.py @@ -780,6 +780,7 @@ class CommentBuilder(Builder): parent_id=parent_id)) else: w = more_recursions[parent_id] + w.children.append(comment_id) more_recursions[parent_id] = w timer.intermediate("pick_comments")