reactivate actions (#682)
* reactivate other actions * black * codeql 2 * black only * remove mock event loop * do not follow grpc
This commit is contained in:
+2
-2
@@ -62,12 +62,12 @@ def create_app(config_object="lnbits.settings") -> FastAPI:
|
||||
):
|
||||
# Only the browser sends "text/html" request
|
||||
# not fail proof, but everything else get's a JSON response
|
||||
|
||||
|
||||
if "text/html" in request.headers["accept"]:
|
||||
return template_renderer().TemplateResponse(
|
||||
"error.html",
|
||||
{"request": request, "err": f"{exc.errors()} is not a valid UUID."},
|
||||
)
|
||||
)
|
||||
|
||||
return JSONResponse(
|
||||
status_code=HTTPStatus.NO_CONTENT,
|
||||
|
||||
@@ -43,7 +43,7 @@ async def create_withdraw_link(
|
||||
urlsafe_short_hash(),
|
||||
int(datetime.now().timestamp()) + data.wait_time,
|
||||
usescsv,
|
||||
data.webhook_url
|
||||
data.webhook_url,
|
||||
),
|
||||
)
|
||||
link = await get_withdraw_link(link_id, 0)
|
||||
|
||||
@@ -114,7 +114,7 @@ async def api_lnurl_callback(
|
||||
await update_withdraw_link(link.id, **changes)
|
||||
|
||||
payment_request = pr
|
||||
|
||||
|
||||
payment_hash = await pay_invoice(
|
||||
wallet_id=link.wallet,
|
||||
payment_request=payment_request,
|
||||
|
||||
@@ -109,8 +109,9 @@ async def m003_make_hash_check(db):
|
||||
"""
|
||||
)
|
||||
|
||||
|
||||
async def m004_webhook_url(db):
|
||||
"""
|
||||
Adds webhook_url
|
||||
"""
|
||||
await db.execute("ALTER TABLE withdraw.withdraw_link ADD COLUMN webhook_url TEXT;")
|
||||
await db.execute("ALTER TABLE withdraw.withdraw_link ADD COLUMN webhook_url TEXT;")
|
||||
|
||||
+1
-1
@@ -161,7 +161,7 @@ def template_renderer(additional_folders: List = []) -> Jinja2Templates:
|
||||
["lnbits/templates", "lnbits/core/templates", *additional_folders]
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
if settings.LNBITS_AD_SPACE:
|
||||
t.env.globals["AD_SPACE"] = settings.LNBITS_AD_SPACE
|
||||
t.env.globals["HIDE_API"] = settings.LNBITS_HIDE_API
|
||||
|
||||
Reference in New Issue
Block a user