remove exception to black line-length and reformat.

This commit is contained in:
fiatjaf
2021-03-24 00:40:32 -03:00
parent 3333f1f3f3
commit 42bd5ea989
92 changed files with 1341 additions and 330 deletions
+8 -2
View File
@@ -4,7 +4,11 @@ from typing import Optional, List, Callable
from quart_trio import QuartTrio
from lnbits.settings import WALLET
from lnbits.core.crud import get_payments, get_standalone_payment, delete_expired_invoices
from lnbits.core.crud import (
get_payments,
get_standalone_payment,
delete_expired_invoices,
)
main_app: Optional[QuartTrio] = None
@@ -67,7 +71,9 @@ async def invoice_listener(nursery):
async def check_pending_payments():
await delete_expired_invoices()
while True:
for payment in await get_payments(complete=False, pending=True, exclude_uncheckable=True):
for payment in await get_payments(
complete=False, pending=True, exclude_uncheckable=True
):
print(" - checking pending", payment.checking_id)
await payment.check_pending()