|
|
@ -217,8 +217,6 @@ class SendScreen(CScreen): |
|
|
|
self.payment_request_queued = None |
|
|
|
_list = self.app.wallet.get_invoices() |
|
|
|
_list.reverse() |
|
|
|
lnworker_logs = self.app.wallet.lnworker.logs if self.app.wallet.lnworker else {} |
|
|
|
_list = [x for x in _list if x and x.get('status') != PR_PAID or x.get('rhash') in lnworker_logs] |
|
|
|
payments_container = self.ids.payments_container |
|
|
|
payments_container.data = [self.get_card(item) for item in _list] |
|
|
|
|
|
|
@ -478,8 +476,8 @@ class ReceiveScreen(CScreen): |
|
|
|
ci['key'] = key |
|
|
|
ci['amount'] = self.app.format_amount_and_units(amount) if amount else '' |
|
|
|
ci['memo'] = description |
|
|
|
ci['status'] = status_str |
|
|
|
ci['is_expired'] = status == PR_EXPIRED |
|
|
|
ci['status'] = status |
|
|
|
ci['status_str'] = status_str |
|
|
|
return ci |
|
|
|
|
|
|
|
def update(self): |
|
|
@ -488,7 +486,7 @@ class ReceiveScreen(CScreen): |
|
|
|
_list = self.app.wallet.get_sorted_requests() |
|
|
|
_list.reverse() |
|
|
|
requests_container = self.ids.requests_container |
|
|
|
requests_container.data = [self.get_card(item) for item in _list if item.get('status') != PR_PAID] |
|
|
|
requests_container.data = [self.get_card(item) for item in _list] |
|
|
|
|
|
|
|
def show_item(self, obj): |
|
|
|
self.app.show_request(obj.is_lightning, obj.key) |
|
|
|