mirror of
https://github.com/Kunsi/pretalx-plugin-broadcast-tools
synced 2024-11-01 00:05:50 +00:00
more code style
This commit is contained in:
parent
375374d65d
commit
8e1219e29c
1 changed files with 7 additions and 6 deletions
|
@ -6,8 +6,7 @@ from django.views.generic import FormView
|
|||
from django.views.generic.base import TemplateView
|
||||
from pretalx.agenda.views.schedule import ScheduleMixin
|
||||
from pretalx.common.mixins.views import (
|
||||
EventPermissionRequired,
|
||||
PermissionRequired,
|
||||
EventPermissionRequired, PermissionRequired,
|
||||
)
|
||||
from pretalx.schedule.exporters import ScheduleData
|
||||
|
||||
|
@ -56,7 +55,8 @@ class ScheduleView(EventPermissionRequired, ScheduleMixin, TemplateView):
|
|||
"conference": {
|
||||
"slug": schedule.event.slug,
|
||||
"name": str(schedule.event.name),
|
||||
"no_talk": str(schedule.event.settings.lower_thirds_no_talk_info),
|
||||
"no_talk": str(
|
||||
schedule.event.settings.lower_thirds_no_talk_info),
|
||||
},
|
||||
"rooms": sorted(
|
||||
{
|
||||
|
@ -69,9 +69,10 @@ class ScheduleView(EventPermissionRequired, ScheduleMixin, TemplateView):
|
|||
{
|
||||
"id": talk.submission.id,
|
||||
"start": talk.start.astimezone(tz).isoformat(),
|
||||
"end": (talk.start + dt.timedelta(minutes=talk.duration))
|
||||
.astimezone(tz)
|
||||
.isoformat(),
|
||||
"end": (
|
||||
talk.start +
|
||||
dt.timedelta(minutes=talk.duration)
|
||||
).astimezone(tz).isoformat(),
|
||||
"slug": talk.frab_slug,
|
||||
"title": talk.submission.title,
|
||||
"persons": sorted(
|
||||
|
|
Loading…
Reference in a new issue