mirror of
https://github.com/Kunsi/pretalx-plugin-broadcast-tools
synced 2024-11-22 12:21:01 +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 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(
|
||||||
|
|
Loading…
Reference in a new issue