1
0
Fork 0
mirror of https://github.com/Kunsi/pretalx-plugin-broadcast-tools synced 2024-04-29 19:17:17 +00:00

more code style

This commit is contained in:
Franzi 2021-11-21 08:13:05 +01:00
parent 375374d65d
commit 8e1219e29c
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -6,8 +6,7 @@ from django.views.generic import FormView
from django.views.generic.base import TemplateView from django.views.generic.base import TemplateView
from pretalx.agenda.views.schedule import ScheduleMixin from pretalx.agenda.views.schedule import ScheduleMixin
from pretalx.common.mixins.views import ( from pretalx.common.mixins.views import (
EventPermissionRequired, EventPermissionRequired, PermissionRequired,
PermissionRequired,
) )
from pretalx.schedule.exporters import ScheduleData from pretalx.schedule.exporters import ScheduleData
@ -56,7 +55,8 @@ class ScheduleView(EventPermissionRequired, ScheduleMixin, TemplateView):
"conference": { "conference": {
"slug": schedule.event.slug, "slug": schedule.event.slug,
"name": str(schedule.event.name), "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( "rooms": sorted(
{ {
@ -69,9 +69,10 @@ class ScheduleView(EventPermissionRequired, ScheduleMixin, TemplateView):
{ {
"id": talk.submission.id, "id": talk.submission.id,
"start": talk.start.astimezone(tz).isoformat(), "start": talk.start.astimezone(tz).isoformat(),
"end": (talk.start + dt.timedelta(minutes=talk.duration)) "end": (
.astimezone(tz) talk.start +
.isoformat(), dt.timedelta(minutes=talk.duration)
).astimezone(tz).isoformat(),
"slug": talk.frab_slug, "slug": talk.frab_slug,
"title": talk.submission.title, "title": talk.submission.title,
"persons": sorted( "persons": sorted(