diff --git a/hive/db/schema.py b/hive/db/schema.py index f0df0af90e65d2faa36d483a9ebb3b6504ab713d..ea2765ab6b267625b6acba72c2936b93f0c79e2d 100644 --- a/hive/db/schema.py +++ b/hive/db/schema.py @@ -638,7 +638,7 @@ def setup(db): hp.is_deleted, hp.is_pinned, hr.title AS role_title, - hr.role_id AS role_is, + hr.role_id AS role_id, hc.title AS community_title, hc.name AS community_name FROM hive_posts hp diff --git a/hive/server/bridge_api/methods.py b/hive/server/bridge_api/methods.py index e4285c9f65858442041be15279e95705544c7e34..73da17ef1d31e33c51e8897ebb2e351da0def40b 100644 --- a/hive/server/bridge_api/methods.py +++ b/hive/server/bridge_api/methods.py @@ -53,7 +53,7 @@ SQL_TEMPLATE = """ hp.sc_trend, hp.role_title, hp.community_title, - hr.role_id, + hp.role_id, hp.is_pinned, hp.curator_payout_value FROM hive_posts_view hp diff --git a/hive/server/database_api/methods.py b/hive/server/database_api/methods.py index 636a92767b0de8a38ecae50ec9d41af038f2e600..ac2196d656f9d7edc46213f8a2d3e5995a0a45f2 100644 --- a/hive/server/database_api/methods.py +++ b/hive/server/database_api/methods.py @@ -234,7 +234,6 @@ async def find_votes(context, params: dict, votes_presentation = VotesPresentati rshares=number_to_json_value(row.rshares), time=time_string_with_t(row.time), voter=row.voter, weight=number_to_json_value(row.weight), )) - return ret @return_error_info diff --git a/hive/utils/normalize.py b/hive/utils/normalize.py index 447654164685dc3b8fc72252db6ad23cdc9d86ab..3de9a6e8e4cb3783c70e3cae7072581af1639d57 100644 --- a/hive/utils/normalize.py +++ b/hive/utils/normalize.py @@ -244,9 +244,6 @@ def number_to_json_value(number): """ if number > 0xFFFFFFFF: return str(number) - from decimal import Decimal - if isinstance(number, Decimal): - return str(number) return number def time_string_with_t(time_iso8601):