1
0
Fork 0
mirror of https://github.com/Kunsi/pretalx-plugin-broadcast-tools synced 2025-06-06 14:42:23 +00:00

Fix some IDE warnings and suggestions

This commit is contained in:
Franzi 2025-05-16 17:08:17 +01:00
parent 5613bf5acb
commit 8d961b8320
Signed by: kunsi
GPG key ID: 12E3D2136B818350
4 changed files with 20 additions and 18 deletions

View file

@ -284,8 +284,7 @@ class PDFExporter(ScheduleData):
show_qrcode = False
icon = "fa-file-pdf"
def _add_pages(self, doc):
style = self._style()
def _add_pages(self):
pages = []
for fahrplan_day in self.data:
for room_details in fahrplan_day["rooms"]:
@ -302,12 +301,13 @@ class PDFExporter(ScheduleData):
fahrplan_day,
room_details,
talk,
style,
self._style,
)
)
pages.append(PageBreak())
return pages
@property
def _style(self):
stylesheet = StyleSheet1()
stylesheet.add(
@ -366,7 +366,7 @@ class PDFExporter(ScheduleData):
topMargin=0,
bottomMargin=0,
)
doc.build(self._add_pages(doc))
doc.build(self._add_pages())
f.seek(0)
return (