Add support for avoiding shifts on specific dates for workers
- Introduced AvoidShiftOnDates model to define constraints for workers. - Enhanced Worker class to register avoid-shift rules with the rota builder. - Implemented logic in RotaBuilder to enforce these constraints during shift assignment. - Added tests to verify functionality for avoiding shifts on single dates and date ranges.
This commit is contained in:
@@ -259,3 +259,9 @@ def load_leave(Rota):
|
||||
|
||||
|
||||
# load_leave()
|
||||
|
||||
def load_academy(Rota):
|
||||
"""
|
||||
Some trainees spend month blocks in the academy. This function loads that information from a google sheet that published it as a csv file.
|
||||
"""
|
||||
url = "https://docs.google.com/spreadsheets/d/e/2PACX-1vQtNrp9F1fjtAh8vFX-W_R3RlD9H-2P_vCLMoHrVKR0e24yabbsdrD65VjwxoHlV1Qnatmw1NeghQHG/pub?gid=1113837782&single=true&output=csv"
|
||||
Reference in New Issue
Block a user