Skip to content

Commit

Permalink
test passes on my local though
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad committed Jan 30, 2025
1 parent abc8474 commit 9186643
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions care/emr/resources/scheduling/schedule/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,14 @@ def check_for_overlaps(self):
all_availabilities = [*self.availability]
for availability in availabilities:
all_availabilities.extend(
AvailabilityDateTimeSpec(
day_of_week=availability["day_of_week"],
start_time=availability["start_time"],
end_time=availability["end_time"],
)
for availability in availability.availability
[
AvailabilityDateTimeSpec(
day_of_week=availability["day_of_week"],
start_time=availability["start_time"],
end_time=availability["end_time"],
)
for availability in availability.availability
]
)
if has_overlapping_availability(all_availabilities):
raise ValueError("Availability time ranges are overlapping")
Expand Down

0 comments on commit 9186643

Please sign in to comment.