Add ignore_shifts parameter to PostShiftConstraint and PreShiftConstraint

This commit is contained in:
Ross
2025-08-11 13:56:43 +01:00
parent 76f3b48c1d
commit b72d33189c
2 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -353,7 +353,7 @@ def main(
#{"name": "pre", "options": 2},
#{"name": "post", "options": 1},
PostShiftConstraint(days=1, start_date="2025-11-24"),
PostShiftConstraint(days=1, start_date="2025-11-17", ignore_shifts=["oncall"]),
],
display_char="a",
#force_assign_with=["oncall"]