1
0
Fork 0
mirror of https://github.com/Kunsi/pretalx-plugin-broadcast-tools synced 2024-11-13 06:35:49 +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": {
"lower_info": self.request.event.settings.broadcast_tools_room_info_lower_content
or "",
"show_next_talk": True
if self.request.event.settings.broadcast_tools_room_info_show_next_talk
else False,
"show_next_talk": (
True
if self.request.event.settings.broadcast_tools_room_info_show_next_talk
else False
),
},
"slug": self.request.event.slug,
"start": self.request.event.date_from.isoformat(),

View file

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