Update
DevPlace CI / test (push) Has been cancelled

This commit is contained in:
2026-06-09 18:48:08 +02:00
parent 2a7d93f115
commit db56ebbe74
175 changed files with 12660 additions and 4175 deletions
+9 -2
View File
@@ -32,7 +32,12 @@ async def push_register(request: Request) -> JSONResponse:
return JSONResponse({"error": "Invalid JSON"}, status_code=400)
keys = body.get("keys") if isinstance(body, dict) else None
if not (isinstance(keys, dict) and body.get("endpoint") and keys.get("p256dh") and keys.get("auth")):
if not (
isinstance(keys, dict)
and body.get("endpoint")
and keys.get("p256dh")
and keys.get("auth")
):
return JSONResponse({"error": "Invalid request"}, status_code=400)
_, created = await push.register(
@@ -62,4 +67,6 @@ async def service_worker() -> FileResponse:
@router.get("/manifest.json")
async def manifest() -> FileResponse:
return FileResponse(STATIC_DIR / "manifest.json", media_type="application/manifest+json")
return FileResponse(
STATIC_DIR / "manifest.json", media_type="application/manifest+json"
)