We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 179a481 commit d880e10Copy full SHA for d880e10
appointment/utils.py
@@ -83,7 +83,8 @@ def get_available_slots(date, appointments):
83
for appointment in appointments:
84
appointment_start_time = appointment.get_start_time()
85
appointment_end_time = appointment.get_end_time()
86
- slots = [slot for slot in slots if not (appointment_start_time <= slot <= appointment_end_time)]
+ slots = [slot for slot in slots if
87
+ not (appointment_start_time < slot + slot_duration and slot < appointment_end_time)]
88
return [slot.strftime('%I:%M %p') for slot in slots]
89
90
@staticmethod
0 commit comments