From 47d51fe19841368588a2193646c20e725c3ba918 Mon Sep 17 00:00:00 2001 From: Ernesto Rico Schmidt <ernesto@helsinki.at> Date: Tue, 2 Jul 2024 19:35:39 -0400 Subject: [PATCH] refactor: rename ScheduleEntry -> DayScheduleEntry --- program/services.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/program/services.py b/program/services.py index b9aad459..6ae8790d 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"], -- GitLab