This commit is contained in:
kim
2026-05-06 22:45:28 +09:00
parent dac32dbcee
commit a77ee3bdc9
204 changed files with 2407 additions and 5205 deletions
-7
View File
@@ -857,13 +857,6 @@ def generate(spec: dict, workspace_path: str) -> dict:
print(f"[pptx_gen] ERROR: Failed to save PPTX to {output_path}: {e}", file=sys.stderr, flush=True)
raise
# Build download and preview links
relative_path = f"{project_slug}/{filename}"
from urllib.parse import quote
encoded_path = "/".join(quote(s, safe='') for s in relative_path.split("/"))
download_url = f"/api/files/{encoded_path}"
preview_url = f"/api/pptx/preview?path={quote(relative_path)}"
total_slides = len(prs.slides)
added_slides = len(slides_spec)
action = "updated" if (existing_path and os.path.exists(existing_path)) else "created"