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:
Ross
2026-01-05 21:44:34 +00:00
parent 62e48ef205
commit e6bdd4a09e
6 changed files with 289 additions and 3 deletions
+1 -1
View File
@@ -1 +1 @@
/home/ross/proc-rota/output/timetable.css
/home/ross/proc_rota/output/timetable.css
+1 -1
View File
@@ -1 +1 @@
/home/ross/proc-rota/output/timetable.js
/home/ross/proc_rota/output/timetable.js