mirror of
https://github.com/Kunsi/pretalx-plugin-broadcast-tools
synced 2024-11-22 00:31:02 +00:00
make the linter happy
This commit is contained in:
parent
85893d9c9c
commit
ca8a2e3c65
2 changed files with 4 additions and 2 deletions
|
@ -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
|
||||||
|
|
|
@ -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(),
|
||||||
|
|
Loading…
Reference in a new issue