get_wallet_payments with more fine-grained, explicit filters.

This commit is contained in:
fiatjaf
2020-08-31 22:16:19 -03:00
parent d09e624eb6
commit fadddc995a
4 changed files with 34 additions and 14 deletions
+1 -1
View File
@@ -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(include_all_pending=True):
for payment in g.wallet.get_payments(pending=True):
if payment.is_out:
payment.set_pending(WALLET.get_payment_status(payment.checking_id).pending)
else: