Browse Source

qt invoice list: fix #5222

regtest_lnd
SomberNight 6 years ago
parent
commit
beacf88420
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 2
      electrum/gui/qt/invoice_list.py
  2. 5
      electrum/paymentrequest.py

2
electrum/gui/qt/invoice_list.py

@ -71,6 +71,8 @@ class InvoiceList(MyTreeView):
for idx, pr in enumerate(inv_list):
key = pr.get_id()
status = self.parent.invoices.get_status(key)
if status is None:
continue
requestor = pr.get_requestor()
exp = pr.get_expiration_date()
date_str = format_time(exp) if exp else _('Never')

5
electrum/paymentrequest.py

@ -537,4 +537,7 @@ class InvoiceStore(object):
return self.invoices.values()
def unpaid_invoices(self):
return [ self.invoices[k] for k in filter(lambda x: self.get_status(x)!=PR_PAID, self.invoices.keys())]
return [self.invoices[k] for k in
filter(lambda x: self.get_status(x) not in (PR_PAID, None),
self.invoices.keys())
]

Loading…
Cancel
Save