mirror of
https://github.com/Kunsi/pretalx-plugin-broadcast-tools
synced 2024-12-22 12:59:12 +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": {
|
"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(),
|
||||||
|
|
|
@ -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(
|
||||||
|
|
Loading…
Reference in a new issue