diff --git a/program/services.py b/program/services.py index b9aad4593349c501ad2ba203a6b7a35c82660386..6ae8790db5c4037a0f7845e99dd9244bbf07e27f 100644 --- a/program/services.py +++ b/program/services.py @@ -95,7 +95,7 @@ class ScheduleCreateUpdateData(TypedDict): solutions: dict[str, str] -class ScheduleEntry(TypedDict): +class DayScheduleEntry(TypedDict): end: str is_virtual: bool show_id: int @@ -782,10 +782,10 @@ def generate_conflicts(timeslots: list[TimeSlot]) -> Conflicts: return conflicts -def make_schedule_entry(*, timeslot_entry: TimeslotEntry) -> ScheduleEntry: - """returns a schedule entry for the given timeslot entry.""" +def make_day_schedule_entry(*, timeslot_entry: TimeslotEntry) -> DayScheduleEntry: + """returns a day schedule entry for the given timeslot entry.""" - return ScheduleEntry( + return DayScheduleEntry( end=timeslot_entry["end"], show_id=timeslot_entry["show_id"], is_virtual=timeslot_entry["is_virtual"],