From 8169b203da355341dc6938de0a0bc04ec50d9961 Mon Sep 17 00:00:00 2001 From: Ernesto Rico Schmidt <ernesto@helsinki.at> Date: Tue, 18 Jun 2024 14:22:47 -0400 Subject: [PATCH] fix: expose Timeslot ID as timeslotId --- program/services.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/program/services.py b/program/services.py index 6789f618..b5c504be 100644 --- a/program/services.py +++ b/program/services.py @@ -105,7 +105,7 @@ class ScheduleEntry(TypedDict): class TimeslotEntry(TypedDict): end: str - id: int + timeslot_id: int is_virtual: Literal[False] playlist_id: int | None repetition_of_id: int | None @@ -799,7 +799,6 @@ def make_timeslot_entry(*, timeslot: TimeSlot) -> TimeslotEntry: return { "end": timeslot.end.strftime("%Y-%m-%dT%H:%M:%S%z"), - "id": timeslot.id, "is_virtual": False, "playlist_id": timeslot.playlist_id, # 'timeslot.repetition_of` is a foreign key that can be null @@ -810,6 +809,7 @@ def make_timeslot_entry(*, timeslot: TimeSlot) -> TimeslotEntry: "show_id": show.id, "show_name": show.name, "start": timeslot.start.strftime("%Y-%m-%dT%H:%M:%S%z"), + "timeslot_id": timeslot.id, } -- GitLab