File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -23,15 +23,16 @@ def is_lunch_time_slot(slot):
2323
2424
2525def is_after_first_lunch_slot (pycamp , slot ):
26- return slot [0 ].day != pycamp .start .day or slot [0 ].hour >= LUNCH_TIME_END_HOUR
26+ return slot [0 ].day != pycamp .init .day or slot [0 ].hour >= LUNCH_TIME_END_HOUR
2727
2828
29-
3029def is_before_last_lunch_slot (pycamp , slot ):
30+ """Must be False if slot starts after lunch the last day"""
3131 return slot [0 ].day != pycamp .end .day or slot [0 ].hour < LUNCH_TIME_START_HOUR
3232
3333
3434def is_valid_wizard_slot (pycamp , slot ):
35+ """If True the slot is kept."""
3536 return (
3637 is_wizard_time_slot (slot )
3738 and not is_lunch_time_slot (slot )
@@ -61,7 +62,7 @@ def compute_wizards_slots(pycamp):
6162 (slot_start , slot_end )
6263 )
6364 current_period = slot_end
64-
65+ print ( len ( slots ), slots )
6566 slots = clean_wizards_free_slots (pycamp , slots )
6667
6768 return slots
You can’t perform that action at this time.
0 commit comments