This commit is contained in:
benarc
2021-11-12 04:14:55 +00:00
parent 860709f48c
commit 267dea4f75
61 changed files with 23219 additions and 13297 deletions
+1 -1
View File
@@ -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))
+2 -5
View File
@@ -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)