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:
parent
81494bed54
commit
3917fa65cf
2 changed files with 13 additions and 9 deletions
|
@ -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(),
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue