Skip to content

Commit c1b17df

Browse files
committed
week days with mod 7
1 parent 42c3763 commit c1b17df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pycamp_bot/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def get_slot_weekday_name(slot_day_code):
2929
# Convert slot day code to a zero-based code, to use it as an
3030
# offset to get the weekday name of the slot
3131
offset = ord(slot_day_code) - ord('A')
32-
day_name = ISO_WEEKDAY_NAMES[pycamp_start_weekday + offset]
32+
day_name = ISO_WEEKDAY_NAMES[(pycamp_start_weekday + offset) % 7]
3333

3434
return day_name
3535
def active_pycamp_needed(f):

0 commit comments

Comments
 (0)