Skip to content
Snippets Groups Projects
Commit 9741bee7 authored by Jason Salyers's avatar Jason Salyers
Browse files

[JES] Testing on another method

parent a35dde43
No related branches found
No related tags found
No related merge requests found
...@@ -49,7 +49,7 @@ async def get_discussion(context, author, permlink, observer=None): ...@@ -49,7 +49,7 @@ async def get_discussion(context, author, permlink, observer=None):
root_id = rows[0]['id'] root_id = rows[0]['id']
all_posts = {} all_posts = {}
root_post = _condenser_post_object(rows[0]) root_post = _condenser_post_object(rows[0])
root_post = append_statistics_to_post(root_post, rows[0], False, observer, context) root_post = await append_statistics_to_post(root_post, rows[0], False, observer, context)
root_post['replies'] = [] root_post['replies'] = []
all_posts[root_id] = root_post all_posts[root_id] = root_post
...@@ -59,7 +59,7 @@ async def get_discussion(context, author, permlink, observer=None): ...@@ -59,7 +59,7 @@ async def get_discussion(context, author, permlink, observer=None):
for index in range(1, len(rows)): for index in range(1, len(rows)):
id_to_parent_id_map[rows[index]['id']] = rows[index]['parent_id'] id_to_parent_id_map[rows[index]['id']] = rows[index]['parent_id']
post = _condenser_post_object(rows[index]) post = _condenser_post_object(rows[index])
post = append_statistics_to_post(post, rows[index], False) post = await append_statistics_to_post(post, rows[index], False, observer, context)
post['replies'] = [] post['replies'] = []
all_posts[post['post_id']] = post all_posts[post['post_id']] = post
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment