Skip to content

Commit

Permalink
make the linters happy
Browse files Browse the repository at this point in the history
I wonder if someday i'll remember this before doing a release.
  • Loading branch information
Kunsi committed Oct 31, 2024
1 parent 8dde191 commit d1d3283
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pretalx_broadcast_tools/exporter.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from tempfile import NamedTemporaryFile

from django.utils.timezone import now
from django.utils.translation import gettext_noop
from i18nfield.strings import LazyI18nString
from pretalx.schedule.exporters import ScheduleData
Expand Down Expand Up @@ -28,6 +27,7 @@
def _(text):
return LazyI18nString.from_gettext(gettext_noop(text))


class PDFInfoPage(Flowable):
def __init__(self, event, schedule, fahrplan_day, room_details, talk, style):
super().__init__()
Expand All @@ -43,9 +43,9 @@ def __init__(self, event, schedule, fahrplan_day, room_details, talk, style):
def _questions(self):
return {
int(i.strip())
for i in (self.event.settings.broadcast_tools_pdf_questions_to_include or "").split(
","
)
for i in (
self.event.settings.broadcast_tools_pdf_questions_to_include or ""
).split(",")
if i
}

Expand Down Expand Up @@ -361,7 +361,6 @@ def render(self, *args, **kwargs):
)
doc.build(self._add_pages(doc))
f.seek(0)
timestamp = now().strftime("%Y-%m-%d-%H%M")

return (
f"{self.event.slug}_broadcast_tools_{self.schedule.version}.pdf",
Expand Down

0 comments on commit d1d3283

Please sign in to comment.