1
0
Fork 0
mirror of https://github.com/Kunsi/pretalx-plugin-broadcast-tools synced 2024-11-21 15:11:03 +00:00

exporter: use schedule version for pdf file name, not timestamp

This commit is contained in:
Franzi 2024-10-31 19:00:09 +01:00
parent 443c7ce85a
commit bad650d5b9
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -360,7 +360,7 @@ class PDFExporter(ScheduleData):
timestamp = now().strftime("%Y-%m-%d-%H%M") timestamp = now().strftime("%Y-%m-%d-%H%M")
return ( return (
f"{self.event.slug}_broadcast_tools_{timestamp}.pdf", f"{self.event.slug}_broadcast_tools_{self.schedule.version}.pdf",
"application/pdf", "application/pdf",
f.read(), f.read(),
) )