From b4a6b456458b5b8049091cc11c2365365eddbdd1 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Mon, 31 Aug 2020 22:55:19 -0300 Subject: [PATCH] only check pending payments on "check_pending". --- lnbits/core/views/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnbits/core/views/api.py b/lnbits/core/views/api.py index 47bf875f..05670318 100644 --- a/lnbits/core/views/api.py +++ b/lnbits/core/views/api.py @@ -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: