mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-22 14:22:55 +01:00
make format from #967
This commit is contained in:
parent
e357dfe37a
commit
d8a8614fb9
1 changed files with 4 additions and 1 deletions
|
@ -200,7 +200,10 @@ class SparkWallet(Wallet):
|
|||
if r["pays"][0]["payment_hash"] == checking_id:
|
||||
status = r["pays"][0]["status"]
|
||||
if status == "complete":
|
||||
fee_msat = -(int(r["pays"][0]["amount_sent_msat"][0:-4]) - int(r["pays"][0]["amount_msat"][0:-4]))
|
||||
fee_msat = -(
|
||||
int(r["pays"][0]["amount_sent_msat"][0:-4])
|
||||
- int(r["pays"][0]["amount_msat"][0:-4])
|
||||
)
|
||||
return PaymentStatus(True, fee_msat, r["pays"][0]["preimage"])
|
||||
elif status == "failed":
|
||||
return PaymentStatus(False)
|
||||
|
|
Loading…
Add table
Reference in a new issue