From 9741bee776cedd094f8a9efed180bd751b8afb45 Mon Sep 17 00:00:00 2001
From: jsalyers <jsalyers@syncad.com>
Date: Mon, 1 Jun 2020 17:17:51 -0400
Subject: [PATCH] [JES] Testing on another method

---
 hive/server/bridge_api/thread.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hive/server/bridge_api/thread.py b/hive/server/bridge_api/thread.py
index 016b9524a..8c7c54c71 100644
--- a/hive/server/bridge_api/thread.py
+++ b/hive/server/bridge_api/thread.py
@@ -49,7 +49,7 @@ async def get_discussion(context, author, permlink, observer=None):
     root_id = rows[0]['id']
     all_posts = {}
     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'] = []
     all_posts[root_id] = root_post
 
@@ -59,7 +59,7 @@ async def get_discussion(context, author, permlink, observer=None):
     for index in range(1, len(rows)):
         id_to_parent_id_map[rows[index]['id']] = rows[index]['parent_id']
         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'] = []
         all_posts[post['post_id']] = post
 
-- 
GitLab