Created
December 23, 2023 05:17
-
-
Save galenseilis/e3c587b0977df8d70d896f05086d44d3 to your computer and use it in GitHub Desktop.
Function to make a weekday server schedule for ciw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def weekday_server_sched(offset): | |
return [[1 if ((i - offset + 7) % 7) < 5 else 0, i+1] for i in range(7)] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment