mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-21 14:10:30 +02:00
only check pending payments on "check_pending".
This commit is contained in:
@@ -15,7 +15,7 @@ def api_payments():
|
||||
if "check_pending" in request.args:
|
||||
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:
|
||||
payment.set_pending(WALLET.get_payment_status(payment.checking_id).pending)
|
||||
else:
|
||||
|
Reference in New Issue
Block a user