feat: lien PLY téléchargement direct depuis dashboard (port 8300 worker)

This commit is contained in:
Flag
2026-04-23 22:14:39 +00:00
parent 325e5feb5f
commit fb38ff2192
3 changed files with 13 additions and 0 deletions

View File

@@ -221,6 +221,14 @@ def _build_acquisitions():
# Mask the viser link when the demo.py that was serving it has since died.
if j["status"] == "done" and j["viser_url"] and not _viser_alive(j["viser_url"]):
d["viser_url"] = None
# PLY download link
ply_url = None
ply_path_db = d.get("ply_path")
if ply_path_db and d.get("worker_host"):
dir_name = ply_path_db.rstrip("/").split("/")[-2]
file_name = ply_path_db.rstrip("/").split("/")[-1]
ply_url = f"http://{d['worker_host']}:8300/{dir_name}/{file_name}"
d["ply_url"] = ply_url
# GLB download link: only when glb_path is set in DB (conversion confirmed)
glb_url = None
glb_path = d.get("glb_path")