v2.6.0
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user