This commit is contained in:
Ross
2025-12-08 22:45:10 +00:00
parent cd52d53381
commit 116cc1af64
5 changed files with 9 additions and 7 deletions
+4 -3
View File
@@ -92,13 +92,13 @@ class NightConstraint(BaseShiftConstraint):
class PreShiftConstraint(BaseShiftConstraint):
days: Any = None
ignore_shifts: List[str] = []
exclude_days: List[str] = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
exclude_days: List[str] = []
allow_self: bool = True
class PostShiftConstraint(BaseShiftConstraint):
days: Any = None
ignore_shifts: List[str] = []
exclude_days: List[str] = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
exclude_days: List[str] = []
allow_self: bool = True
class BalanceAcrossGroupsConstraint(BaseShiftConstraint):
@@ -389,7 +389,8 @@ class RotaBuilder(object):
"max_night_frequency_week_exclusions": [],
"max_shifts_per_week": 7,
"max_shifts_per_month": 40,
"max_days_per_week_block": [(3, 2)], # (max_days, week_block)
"max_days_per_week_block": [],
#"max_days_per_week_block": [(3, 2)], # (max_days, week_block)
# The following will cause an unsolvable problem if a shift
# is forced as a block and spans the time peroid
"prevent_monday_after_full_weekends": [],