diff --git a/program/services.py b/program/services.py index 6789f61826d8486ef76c6137569cc1a809286b79..b5c504befc494e76419bd98cd9d43f19231255fb 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, }