Fixes: Export filename issue

This commit is contained in:
sauravniraula 2025-05-13 02:44:10 +05:45
parent efea0bc081
commit f440a17bdb
No known key found for this signature in database
GPG key ID: 60FCC1B5A5E83326
2 changed files with 2 additions and 2 deletions

View file

@ -46,7 +46,7 @@ class ExportAsPDFHandler(FetchPresentationAssetsMixin):
ppt_path = os.path.join(
self.presentation_dir,
f"{presentation.title.replace('/', '_').replace(' ', '_')}.pptx",
f"""{presentation.title.replace('/', '_').replace(' ', '_').replace('"', "'")}.pptx""",
)
ppt_creator = PptxPresentationCreator(self.data.pptx_model, self.temp_dir)

View file

@ -44,7 +44,7 @@ class ExportAsPptxHandler(FetchPresentationAssetsMixin):
ppt_path = os.path.join(
self.presentation_dir,
f"{presentation.title.replace('/', '_').replace(' ', '_').replace('"', "'")}.pptx",
f"""{presentation.title.replace('/', '_').replace(' ', '_').replace('"', "'")}.pptx""",
)
ppt_creator = PptxPresentationCreator(self.data.pptx_model, self.temp_dir)
ppt_creator.create_ppt()