Revert "chore: apply black to all .py files"
This reverts commit 83b7779972.
This commit is contained in:
committed by
benarc
parent
83b7779972
commit
efec7cb8f0
+1
-3
@@ -278,9 +278,7 @@ async def get_payments(
|
||||
return [Payment.from_row(row) for row in rows]
|
||||
|
||||
|
||||
async def delete_expired_invoices(
|
||||
conn: Optional[Connection] = None,
|
||||
) -> None:
|
||||
async def delete_expired_invoices(conn: Optional[Connection] = None,) -> None:
|
||||
# first we delete all invoices older than one month
|
||||
await (conn or db).execute(
|
||||
f"""
|
||||
|
||||
@@ -316,7 +316,8 @@ async def check_invoice_status(
|
||||
if not payment.pending:
|
||||
return status
|
||||
if payment.is_out and status.failed:
|
||||
print(f" - deleting outgoing failed payment {payment.checking_id}: {status}")
|
||||
print(
|
||||
f" - deleting outgoing failed payment {payment.checking_id}: {status}")
|
||||
await payment.delete()
|
||||
elif not status.pending:
|
||||
print(
|
||||
|
||||
@@ -15,7 +15,6 @@ from ..tasks import api_invoice_listeners
|
||||
@core_app.get("/.well-known/lnurlp/{username}")
|
||||
async def lnaddress(username: str, request: Request):
|
||||
from lnbits.extensions.lnaddress.lnurl import lnurl_response
|
||||
|
||||
domain = request.client.host
|
||||
return await lnurl_response(username, domain)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user