Skip to content

Commit 6c6a9c7

Browse files
committed
fix typo
1 parent 81df64e commit 6c6a9c7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/pycamp_bot/commands/wizard.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,16 @@ def is_lunch_time_slot(slot):
2323

2424

2525
def 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-
3029
def 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

3434
def 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

0 commit comments

Comments
 (0)