From f6785df7808c523d6bb438b790dbe8422602b78a Mon Sep 17 00:00:00 2001 From: Holger Nahrstaedt <holgernahrstaedt@gmx.de> Date: Wed, 14 Oct 2020 10:59:35 +0200 Subject: [PATCH] Fix issue #263 Fix for #263 --- CHANGELOG.rst | 1 + beem/cli.py | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index b61a5dca..9237b914 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -9,6 +9,7 @@ Changelog * Comment class has been cleaned up, use_tags_api has been replaced by api * Add check if get_account_votes is still supported (is dropped in HF24) * New SupportedByHivemind exception has been added +* Fix issue #263 0.24.11 ------- diff --git a/beem/cli.py b/beem/cli.py index 44c554ff..55ae596e 100644 --- a/beem/cli.py +++ b/beem/cli.py @@ -4217,8 +4217,12 @@ def rewards(accounts, only_sum, post, comment, curation, length, author, permlin continue if not comment and c.is_comment(): continue - payout_SBD = Amount(v["sbd_payout"], blockchain_instance=stm) - payout_STEEM = Amount(v["steem_payout"], blockchain_instance=stm) + if "sbd_payout" in v: + payout_SBD = Amount(v["sbd_payout"], blockchain_instance=stm) + payout_STEEM = Amount(v["steem_payout"], blockchain_instance=stm) + else: + payout_SBD = Amount(v["hbd_payout"], blockchain_instance=stm) + payout_STEEM = Amount(v["hive_payout"], blockchain_instance=stm) sum_reward[0] += float(payout_SBD) sum_reward[1] += float(payout_STEEM) payout_SP = stm.vests_to_token_power(Amount(v["vesting_payout"], blockchain_instance=stm)) -- GitLab