added formulas

This commit is contained in:
2026-06-26 12:30:19 +03:00
parent 83ca6bc12c
commit 6324b7a95e
3 changed files with 29 additions and 1 deletions
Binary file not shown.
+3 -1
View File
@@ -23,7 +23,9 @@ def _artifact_path(job_id: str) -> Path:
status_code=status.HTTP_409_CONFLICT,
detail={"code": "JOB_NOT_READY", "detail": "Job is not finished yet"},
)
uri = (record.get("result") or {}).get("uri")
result = record.get("result") or {}
data = result.get("data") if isinstance(result.get("data"), dict) else {}
uri = result.get("uri") or data.get("uri")
if not uri:
raise HTTPException(
status_code=status.HTTP_404_NOT_FOUND,