From d1a8db61cb6308ead325d7c5c6bfa6663467dec2 Mon Sep 17 00:00:00 2001 From: Andrew Toth Date: Tue, 19 Jul 2022 12:02:36 -0400 Subject: [PATCH] summary: fix attribute errors --- summary/summary.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/summary/summary.py b/summary/summary.py index 25eb144..0f3d5de 100755 --- a/summary/summary.py +++ b/summary/summary.py @@ -157,7 +157,7 @@ def summary(plugin, exclude=''): p['connected'], c['short_channel_id'], plugin.persist['peerstate'][pid]['avail'], - c['fee_base_msat'], + Millisatoshi(c['fee_base_msat']), c['fee_proportional_millionths'], )) @@ -166,7 +166,7 @@ def summary(plugin, exclude=''): reply['avail_out'] = avail_out.to_btc_str() reply['avail_in'] = avail_in.to_btc_str() - reply['fees_collected'] = info['fees_collected_msat'].to_btc_str() + reply['fees_collected'] = Millisatoshi(info['fees_collected_msat']).to_btc_str() if plugin.fiat_per_btc > 0: reply['utxo_amount'] += ' ({})'.format(to_fiatstr(utxo_amount))