show expired status in invoices tab
This commit is contained in:
@@ -256,6 +256,9 @@ class PaymentRequest:
|
||||
def has_expired(self):
|
||||
return self.details.expires and self.details.expires < int(time.time())
|
||||
|
||||
def get_expiration_date(self):
|
||||
return self.details.expires
|
||||
|
||||
def get_amount(self):
|
||||
return sum(map(lambda x:x[1], self.outputs))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user