SomberNight
6 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
2 changed files with
6 additions and
1 deletions
-
electrum/gui/qt/invoice_list.py
-
electrum/paymentrequest.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') |
|
|
|
|
|
@ -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()) |
|
|
|
] |
|
|
|