.
This commit is contained in:
@@ -55,41 +55,41 @@ Rota.add_shifts(
|
|||||||
"torquay_twilight",
|
"torquay_twilight",
|
||||||
12.5,
|
12.5,
|
||||||
days[:4],
|
days[:4],
|
||||||
balance_offset=4,
|
balance_offset=3,
|
||||||
assign_as_block=True),
|
assign_as_block=True),
|
||||||
SingleShift(("plymouth", ),
|
SingleShift(("plymouth", ),
|
||||||
"plymouth_twilight",
|
"plymouth_twilight",
|
||||||
12.5,
|
12.5,
|
||||||
days[:5],
|
days[:5],
|
||||||
balance_offset=4,
|
balance_offset=3,
|
||||||
workers_required=1,
|
workers_required=1,
|
||||||
constraints=["max_2_consecutive_shifts_per_week"]),
|
constraints=["max_2_consecutive_shifts_per_week"]),
|
||||||
SingleShift(("exeter", ),
|
SingleShift(("exeter", ),
|
||||||
"weekend_exeter",
|
"weekend_exeter",
|
||||||
12.5,
|
12.5,
|
||||||
days[4:],
|
days[4:],
|
||||||
balance_offset=4,
|
balance_offset=3,
|
||||||
rota_on_nwds=True,
|
rota_on_nwds=True,
|
||||||
force_as_block=True),
|
force_as_block=True),
|
||||||
SingleShift(("truro", ),
|
SingleShift(("truro", ),
|
||||||
"weekend_truro",
|
"weekend_truro",
|
||||||
12.5,
|
12.5,
|
||||||
days[4:],
|
days[4:],
|
||||||
balance_offset=4,
|
balance_offset=3,
|
||||||
rota_on_nwds=True,
|
rota_on_nwds=True,
|
||||||
force_as_block=True),
|
force_as_block=True),
|
||||||
SingleShift(("torquay", ),
|
SingleShift(("torquay", ),
|
||||||
"weekend_torquay",
|
"weekend_torquay",
|
||||||
12.5,
|
12.5,
|
||||||
days[4:],
|
days[4:],
|
||||||
balance_offset=4,
|
balance_offset=3,
|
||||||
rota_on_nwds=True,
|
rota_on_nwds=True,
|
||||||
force_as_block=True),
|
force_as_block=True),
|
||||||
SingleShift(("plymouth", ),
|
SingleShift(("plymouth", ),
|
||||||
"weekend_plymouth1",
|
"weekend_plymouth1",
|
||||||
8,
|
8,
|
||||||
days[5:],
|
days[5:],
|
||||||
balance_offset=4,
|
balance_offset=3,
|
||||||
workers_required=1,
|
workers_required=1,
|
||||||
rota_on_nwds=True,
|
rota_on_nwds=True,
|
||||||
force_as_block=True),
|
force_as_block=True),
|
||||||
@@ -97,7 +97,7 @@ Rota.add_shifts(
|
|||||||
"weekend_plymouth2",
|
"weekend_plymouth2",
|
||||||
8,
|
8,
|
||||||
days[5:],
|
days[5:],
|
||||||
balance_offset=4,
|
balance_offset=3,
|
||||||
workers_required=1,
|
workers_required=1,
|
||||||
rota_on_nwds=True,
|
rota_on_nwds=True,
|
||||||
force_as_block=True),
|
force_as_block=True),
|
||||||
@@ -106,7 +106,7 @@ Rota.add_shifts(
|
|||||||
"night_weekday",
|
"night_weekday",
|
||||||
12.25,
|
12.25,
|
||||||
days[:4],
|
days[:4],
|
||||||
balance_offset=4,
|
balance_offset=3,
|
||||||
balance_weighting=1,
|
balance_weighting=1,
|
||||||
#hard_constrain_shift=False,
|
#hard_constrain_shift=False,
|
||||||
workers_required=3,
|
workers_required=3,
|
||||||
@@ -118,7 +118,7 @@ Rota.add_shifts(
|
|||||||
"night_weekend",
|
"night_weekend",
|
||||||
12.25,
|
12.25,
|
||||||
days[4:],
|
days[4:],
|
||||||
balance_offset=4,
|
balance_offset=3,
|
||||||
balance_weighting=1,
|
balance_weighting=1,
|
||||||
#hard_constrain_shift=False,
|
#hard_constrain_shift=False,
|
||||||
workers_required=3,
|
workers_required=3,
|
||||||
@@ -129,7 +129,7 @@ Rota.add_shifts(
|
|||||||
|
|
||||||
use_test_workers = False
|
use_test_workers = False
|
||||||
|
|
||||||
load_leave = False
|
load_leave = True
|
||||||
Rota.build_shifts_and_workers()
|
Rota.build_shifts_and_workers()
|
||||||
|
|
||||||
if load_leave:
|
if load_leave:
|
||||||
|
|||||||
Reference in New Issue
Block a user