From c3ef3f9267e945e32c49312b9c6a79578f697b72 Mon Sep 17 00:00:00 2001 From: jsalyers <jsalyers@syncad.com> Date: Thu, 12 Nov 2020 16:38:52 -0500 Subject: [PATCH] [JES] Now actually give it to the SQL function --- hive/server/bridge_api/methods.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hive/server/bridge_api/methods.py b/hive/server/bridge_api/methods.py index edda1018c..a7e1f7fe2 100644 --- a/hive/server/bridge_api/methods.py +++ b/hive/server/bridge_api/methods.py @@ -105,7 +105,7 @@ async def _get_ranked_posts_for_observer_communities( db, sort:str, start_author @return_error_info async def _get_ranked_posts_for_communities( db, sort:str, community, start_author:str, start_permlink:str, limit, observer:str=None): async def execute_community_query(db, sql, limit): - return await db.query_all(sql, community=community, author=start_author, permlink=start_permlink, limit=limit ) + return await db.query_all(sql, community=community, author=start_author, permlink=start_permlink, limit=limit, observer=observer ) pinned_sql = "SELECT * FROM bridge_get_ranked_post_pinned_for_community( (:community)::VARCHAR, (:limit)::SMALLINT )" # missing paging which results in inability to get all pinned posts -- GitLab