fix: pass vmid=0 to analyze — vmid removed from session_analyze params but still needed by backend

This commit is contained in:
Claus Lohmar 2026-07-27 11:29:29 +00:00
parent cc3130a1d1
commit 0f60e22612

View file

@ -302,7 +302,7 @@ async def session_analyze(
backend_filename = f"{session_id}/in/{filename}" if session_id else filename backend_filename = f"{session_id}/in/{filename}" if session_id else filename
try: try:
analysis = api.analyze(vmid=vmid, filename=backend_filename) analysis = api.analyze(vmid=0, filename=backend_filename)
except ApiError as exc: except ApiError as exc:
return JSONResponse({"phase": "error", "error": f"Backend analysis failed: {exc.detail}"}, status_code=502) return JSONResponse({"phase": "error", "error": f"Backend analysis failed: {exc.detail}"}, status_code=502)