1
0
Fork 0
mirror of https://github.com/Kunsi/pretalx-plugin-broadcast-tools synced 2024-11-01 00:05:50 +00:00

make the linter happy

This commit is contained in:
Franziska Kunsmann 2023-08-23 08:11:19 +02:00
parent 85893d9c9c
commit ca8a2e3c65
2 changed files with 4 additions and 2 deletions

View file

@ -1,7 +1,7 @@
from django.dispatch import receiver from django.dispatch import receiver
from django.urls import resolve, reverse from django.urls import resolve, reverse
from django.utils.translation import gettext_noop
from django.utils.translation import gettext_lazy as _ from django.utils.translation import gettext_lazy as _
from django.utils.translation import gettext_noop
from i18nfield.strings import LazyI18nString from i18nfield.strings import LazyI18nString
from pretalx.common.models.settings import hierarkey from pretalx.common.models.settings import hierarkey
from pretalx.common.signals import register_data_exporters from pretalx.common.signals import register_data_exporters

View file

@ -127,7 +127,9 @@ class BroadcastToolsScheduleView(EventPermissionRequired, ScheduleMixin, View):
"talks": [ "talks": [
{ {
"id": talk.submission.id, "id": talk.submission.id,
"start": talk.start.astimezone(schedule.event.tz).isoformat(), "start": talk.start.astimezone(
schedule.event.tz
).isoformat(),
"end": (talk.start + dt.timedelta(minutes=talk.duration)) "end": (talk.start + dt.timedelta(minutes=talk.duration))
.astimezone(schedule.event.tz) .astimezone(schedule.event.tz)
.isoformat(), .isoformat(),