From 1f06339d5a12749bfe07a45440b89a185a50b55d Mon Sep 17 00:00:00 2001 From: Kay Kurokawa Date: Wed, 9 Nov 2016 15:19:58 -0500 Subject: [PATCH] fix get_my_claim command --- lbrynet/core/Wallet.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/lbrynet/core/Wallet.py b/lbrynet/core/Wallet.py index e611fec4c..5dbb785b6 100644 --- a/lbrynet/core/Wallet.py +++ b/lbrynet/core/Wallet.py @@ -370,18 +370,11 @@ class Wallet(object): return d def get_my_claim(self, name): - def _convert_units(claim): - amount = Decimal(claim['nEffectiveAmount'] / COIN) - claim['nEffectiveAmount'] = amount - return claim - def _get_claim_for_return(claim): if not claim: return False - d = self.get_claim(name, claim['claim_id']) - d.addCallback(_convert_units) - d.addCallback(lambda clm: self._format_claim_for_return(name, clm, claim['txid'])) - return d + claim['value'] = json.loads(claim['value']) + return claim def _get_my_unspent_claim(claims): for claim in claims: