Skip to content
Snippets Groups Projects
Verified Commit 8169b203 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

fix: expose Timeslot ID as timeslotId

parent abab8cf3
No related branches found
No related tags found
No related merge requests found
......@@ -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,
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment