mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-22 22:25:47 +01:00
only check pending payments on "check_pending".
This commit is contained in:
parent
fadddc995a
commit
b4a6b45645
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ def api_payments():
|
||||||
if "check_pending" in request.args:
|
if "check_pending" in request.args:
|
||||||
g.wallet.delete_expired_payments()
|
g.wallet.delete_expired_payments()
|
||||||
|
|
||||||
for payment in g.wallet.get_payments(pending=True):
|
for payment in g.wallet.get_payments(complete=False, pending=True):
|
||||||
if payment.is_out:
|
if payment.is_out:
|
||||||
payment.set_pending(WALLET.get_payment_status(payment.checking_id).pending)
|
payment.set_pending(WALLET.get_payment_status(payment.checking_id).pending)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Reference in a new issue