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

refactor: rename ScheduleEntry -> DayScheduleEntry

parent b3b47bbf
No related branches found
No related tags found
No related merge requests found
...@@ -95,7 +95,7 @@ class ScheduleCreateUpdateData(TypedDict): ...@@ -95,7 +95,7 @@ class ScheduleCreateUpdateData(TypedDict):
solutions: dict[str, str] solutions: dict[str, str]
class ScheduleEntry(TypedDict): class DayScheduleEntry(TypedDict):
end: str end: str
is_virtual: bool is_virtual: bool
show_id: int show_id: int
...@@ -782,10 +782,10 @@ def generate_conflicts(timeslots: list[TimeSlot]) -> Conflicts: ...@@ -782,10 +782,10 @@ def generate_conflicts(timeslots: list[TimeSlot]) -> Conflicts:
return conflicts return conflicts
def make_schedule_entry(*, timeslot_entry: TimeslotEntry) -> ScheduleEntry: def make_day_schedule_entry(*, timeslot_entry: TimeslotEntry) -> DayScheduleEntry:
"""returns a schedule entry for the given timeslot entry.""" """returns a day schedule entry for the given timeslot entry."""
return ScheduleEntry( return DayScheduleEntry(
end=timeslot_entry["end"], end=timeslot_entry["end"],
show_id=timeslot_entry["show_id"], show_id=timeslot_entry["show_id"],
is_virtual=timeslot_entry["is_virtual"], is_virtual=timeslot_entry["is_virtual"],
......
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