|
|
|
@ -37,10 +37,10 @@ def input_all_shifts_for_month(): |
|
|
|
start, |
|
|
|
end, |
|
|
|
) |
|
|
|
timezone = shifts_info["data"]["timezone"] |
|
|
|
cafe_info = shifts_info["data"]["currentShifts"]["cafe"][0] |
|
|
|
timezone = shifts_info["timezone"] |
|
|
|
cafe_info = shifts_info["cafeList"][0] |
|
|
|
recorded_shifts = list(calendar.get_events(start_dt, end_dt)) |
|
|
|
for shift in shifts_info["data"]["currentShifts"]["shifts"]: |
|
|
|
for shift in shifts_info["currentShifts"]: |
|
|
|
s = Shift.from_dict(shift, cafe_info, timezone) |
|
|
|
conflicts = any( |
|
|
|
s.start <= event.end and s.end >= event.start for event in recorded_shifts |
|
|
|
|