mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-10 08:05:22 +02:00
chore: return formatted transcript url
- Return formatted transcript and recording URL - Harden campaign dispatcher logic
This commit is contained in:
parent
0716582aa7
commit
7810923bca
30 changed files with 525 additions and 136 deletions
11
api/utils/artifacts.py
Normal file
11
api/utils/artifacts.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
"""Helpers for workflow run artifact access."""
|
||||
|
||||
from api.constants import BACKEND_API_ENDPOINT
|
||||
|
||||
|
||||
def artifact_url(
|
||||
token: str | None, artifact: str, fallback: str | None = None
|
||||
) -> str | None:
|
||||
if not token:
|
||||
return fallback
|
||||
return f"{BACKEND_API_ENDPOINT}/api/v1/public/download/workflow/{token}/{artifact}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue