fix targets
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user