From 39bc7b6deb74c6c7abaec9cb844086c39dcab971 Mon Sep 17 00:00:00 2001 From: Michael Schmoock Date: Mon, 2 Sep 2019 13:58:23 +0200 Subject: [PATCH] fix: making sum() of funds iteration did not work on non-numeric --- helpme/helpme.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpme/helpme.py b/helpme/helpme.py index d502a6f..06da98c 100755 --- a/helpme/helpme.py +++ b/helpme/helpme.py @@ -451,7 +451,7 @@ node! Be prepared to lose your funds (but please report a bug if you do!) if len(funds) == 0: r += "INCOMPLETE: No bitcoins yet. Try 'helpme funds'" else: - funds = Millisatoshi(sum([funds['amount_msat'] for f in funds + funds = Millisatoshi(1000 * sum([f['value'] for f in funds if f['status'] == 'confirmed'])) r += "COMPLETE ({} a.k.a {})".format(funds, funds.to_btc_str()) stages['funds'] = True