fix targets

This commit is contained in:
Ross
2021-01-18 20:51:33 +00:00
parent 3a543ef5b4
commit dba2c5ce6d
+3 -3
View File
@@ -651,9 +651,9 @@ class RotaBuilder(object):
worker.fte_adj)
if self.use_previous_shifts:
if shift in worker.previous_shifts:
worked, allocated = worker.previous_shifts[shift]
target_shifts = target_shifts + allocated - worked
if shift.name in worker.previous_shifts:
worked, allocated = worker.previous_shifts[shift.name]
target_shifts = target_shifts + float(allocated) - float(worked)
worker.shift_target_number[shift.name] = target_shifts