black
This commit is contained in:
@@ -31,4 +31,4 @@ from .views_api import * # noqa
|
||||
|
||||
def copilot_start():
|
||||
loop = asyncio.get_event_loop()
|
||||
loop.create_task(catch_everything_and_restart(wait_for_paid_invoices))
|
||||
loop.create_task(catch_everything_and_restart(wait_for_paid_invoices))
|
||||
|
||||
@@ -49,7 +49,7 @@ async def lnurl_callback(
|
||||
status_code=HTTPStatus.NOT_FOUND, detail="Copilot not found"
|
||||
)
|
||||
amount_received = int(amount)
|
||||
|
||||
|
||||
if amount_received < 10000:
|
||||
raise HTTPException(
|
||||
status_code=HTTPStatus.FORBIDDEN,
|
||||
@@ -80,8 +80,5 @@ async def lnurl_callback(
|
||||
).digest(),
|
||||
extra={"tag": "copilot", "copilotid": cp.id, "comment": comment},
|
||||
)
|
||||
payResponse = {
|
||||
"pr": payment_request,
|
||||
"routes": [],
|
||||
}
|
||||
payResponse = {"pr": payment_request, "routes": []}
|
||||
return json.dumps(payResponse)
|
||||
|
||||
Reference in New Issue
Block a user