latest rotas

This commit is contained in:
Ross
2025-07-07 17:49:21 +01:00
parent adccf8211c
commit cf48c3c168
2 changed files with 48 additions and 19 deletions
+14 -12
View File
@@ -19,8 +19,6 @@ sites = (
"proc",
)
NIGHT_REGISTRAR_NUMBER = 4
from rota.workers import (
Worker,
NotAvailableToWork,
@@ -35,7 +33,7 @@ from rota.workers import (
def main(
suspend: bool = False,
solve: bool = True,
time_to_run: int = 60 * 60,
time_to_run: int = 60 * 60 * 4,
ratio: float = 0.001,
start_date: datetime.datetime = "2025-09-01",
weeks: int = 16,
@@ -425,16 +423,20 @@ def main(
shift_fte_overrides = {}
if worker_name == "Ben Kemp":
#if worker_name == "Ben Kemp":
# shift_fte_overrides = {
# "plymouth_twilight": 100,
# "weekend_plymouth1": 50,
# "weekend_plymouth2": 50,
# }
#elif worker_name == "Joel Lim":
# shift_fte_overrides = {
# "plymouth_twilight": 100,
# "weekend_exeter": 50,
# }
if worker_name == "Nang Thiriphoo":
shift_fte_overrides = {
"plymouth_twilight": 100,
"weekend_plymouth1": 50,
"weekend_plymouth2": 50,
}
elif worker_name == "Joel Lim":
shift_fte_overrides = {
"plymouth_twilight": 100,
"weekend_exeter": 50,
"weekend_exeter": 40,
}
w = Worker(