From f1959cbfe8df250d51cd2edd623a2eed9238ae18 Mon Sep 17 00:00:00 2001
From: Bartek Wrona <wrona@syncad.com>
Date: Mon, 14 Sep 2020 13:08:29 +0200
Subject: [PATCH] Fix related to MR 137 targeted to latest_deployed_develop.

---
 hive/server/bridge_api/cursor.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hive/server/bridge_api/cursor.py b/hive/server/bridge_api/cursor.py
index c24c27e30..dc046a863 100644
--- a/hive/server/bridge_api/cursor.py
+++ b/hive/server/bridge_api/cursor.py
@@ -21,7 +21,7 @@ async def _get_post_id(db, author, permlink):
         INNER JOIN hive_accounts ha_a ON ha_a.id = hp.author_id
         INNER JOIN hive_permlink_data hpd_p ON hpd_p.id = hp.permlink_id
         WHERE ha_a.name = :author AND hpd_p.permlink = :permlink"""
-    post_id = await db.query_one(sql, a=author, p=permlink)
+    post_id = await db.query_one(sql, author=author, permlink=permlink)
     assert post_id, 'invalid author/permlink'
     return post_id
 
-- 
GitLab