mirror of
https://github.com/Kunsi/pretalx-plugin-broadcast-tools
synced 2024-11-21 14:41:25 +00:00
fix compatibility to pretalx 2.3.1
This commit is contained in:
parent
9634838c0f
commit
76f615862f
1 changed files with 9 additions and 2 deletions
|
@ -77,6 +77,13 @@ class PDFInfoPage(Flowable):
|
|||
self._add(Spacer(1, PAGE_PADDING / 2))
|
||||
|
||||
def draw(self):
|
||||
if hasattr(self.talk, 'local_start'):
|
||||
talk_start = self.talk.local_start
|
||||
talk_end = self.talk.local_end
|
||||
else:
|
||||
talk_start = self.talk.start.astimezone(self.event.tz)
|
||||
talk_end = self.talk.end.astimezone(self.event.tz)
|
||||
|
||||
# add some information horizontally to the side of the page
|
||||
self.canv.saveState()
|
||||
self.canv.rotate(90)
|
||||
|
@ -89,7 +96,7 @@ class PDFInfoPage(Flowable):
|
|||
self.talk.submission.code,
|
||||
str(self.talk.submission.submission_type.name),
|
||||
str(self.event.name),
|
||||
self.talk.local_start.isoformat(),
|
||||
talk_start.isoformat(),
|
||||
f"Day {self.day['index']}",
|
||||
str(self.room["name"]),
|
||||
f"Schedule {self.schedule.version}",
|
||||
|
@ -111,7 +118,7 @@ class PDFInfoPage(Flowable):
|
|||
[
|
||||
str(self.event.name),
|
||||
str(self.room["name"]),
|
||||
self.talk.local_start.strftime("%F %T"),
|
||||
talk_start.strftime("%F %T"),
|
||||
],
|
||||
),
|
||||
style=self.style["Meta"],
|
||||
|
|
Loading…
Reference in a new issue