1
0
Fork 0
mirror of https://github.com/Kunsi/pretalx-plugin-broadcast-tools synced 2024-12-22 08:42:45 +00:00

some more code style

This commit is contained in:
Franzi 2024-03-16 11:37:26 +01:00
parent 81494bed54
commit 3917fa65cf
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 13 additions and 9 deletions

View file

@ -15,9 +15,11 @@ class BroadcastToolsEventInfoView(View):
"room-info": { "room-info": {
"lower_info": self.request.event.settings.broadcast_tools_room_info_lower_content "lower_info": self.request.event.settings.broadcast_tools_room_info_lower_content
or "", or "",
"show_next_talk": True "show_next_talk": (
if self.request.event.settings.broadcast_tools_room_info_show_next_talk True
else False, if self.request.event.settings.broadcast_tools_room_info_show_next_talk
else False
),
}, },
"slug": self.request.event.slug, "slug": self.request.event.slug,
"start": self.request.event.date_from.isoformat(), "start": self.request.event.date_from.isoformat(),

View file

@ -53,12 +53,14 @@ class BroadcastToolsScheduleView(EventPermissionRequired, ScheduleMixin, View):
person.get_display_name() person.get_display_name()
for person in talk.submission.speakers.all() for person in talk.submission.speakers.all()
], ],
"track": { "track": (
"color": talk.submission.track.color, {
"name": str(talk.submission.track.name), "color": talk.submission.track.color,
} "name": str(talk.submission.track.name),
if talk.submission.track }
else None, if talk.submission.track
else None
),
"room": room["name"].localize(schedule.event.locale), "room": room["name"].localize(schedule.event.locale),
"infoline": infoline.format( "infoline": infoline.format(
**placeholders( **placeholders(