update
This commit is contained in:
@@ -61,6 +61,7 @@ class Worker:
|
||||
for weeks_days in Rota.weeks_days_product[days_to_work:]:
|
||||
week, day = weeks_days
|
||||
Rota.unavailable_to_work.add((self.id, week, day))
|
||||
Rota.unavailable_to_work_reason[(self.id, week, day)] = "END DATE"
|
||||
|
||||
if oop is not None:
|
||||
start_oop, end_oop = oop
|
||||
@@ -88,6 +89,7 @@ class Worker:
|
||||
days_until_oop:days_until_oop + oop_length]:
|
||||
week, day = weeks_days
|
||||
Rota.unavailable_to_work.add((self.id, week, day))
|
||||
Rota.unavailable_to_work_reason[(self.id, week, day)] = "OOP ()".format(oop)
|
||||
|
||||
if pref_not_to_work is not None:
|
||||
# loop throught dates converting to week / day combination
|
||||
|
||||
Reference in New Issue
Block a user