corrected slide nums in zip file

This commit is contained in:
admin 2026-02-25 16:39:41 -08:00
parent eb8440f34c
commit 36e7ff478a

2
app.py
View File

@ -90,7 +90,7 @@ def index():
# You can now send png_bytes to a response or store it in a DB # You can now send png_bytes to a response or store it in a DB
print(f"Page {page_index} is {len(png_bytes)} bytes.") print(f"Page {page_index} is {len(png_bytes)} bytes.")
zf.writestr("{}/{}{:04d}.png".format(filenameref, filenameref, page_index), png_bytes) zf.writestr("{}/{}-slide-number-{:02d}.png".format(filenameref, filenameref, page_index), png_bytes)
doc.close() doc.close()