Revert "chore: apply black to all .py files"

This reverts commit 83b7779972.
This commit is contained in:
Stefan Stammberger
2021-11-26 05:56:30 +00:00
committed by benarc
parent 83b7779972
commit efec7cb8f0
18 changed files with 90 additions and 139 deletions
+1 -3
View File
@@ -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"""
+2 -1
View File
@@ -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(
-1
View File
@@ -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)