From 3c81ac1fa8f36244a1a436620c453c477f2aaaca Mon Sep 17 00:00:00 2001 From: Michael Clancy Date: Thu, 25 Aug 2022 16:23:11 +0100 Subject: [PATCH] Fixes the incorrect calculation of number invoices paid (#384) --- helpme/helpme.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpme/helpme.py b/helpme/helpme.py index 825dd35..63a241e 100755 --- a/helpme/helpme.py +++ b/helpme/helpme.py @@ -499,7 +499,7 @@ node! Be prepared to lose your funds (but please report a bug if you do!) elif len([s for s in invoices if s['status'] == 'paid']) == 0: r += "INCOMPLETE (No payments succeeded)" else: - r += "COMPLETE ({} payments received)".format(len([s for s in invoices if s['status'] == 'complete'])) + r += "COMPLETE ({} payments received)".format(len([s for s in invoices if s['status'] == 'paid'])) stages['invoices'] = True r += "\nSTAGE 6 (adding bling): "