remove exception to black line-length and reformat.
This commit is contained in:
+8
-2
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user