update previous
This commit is contained in:
@@ -200,7 +200,7 @@ else:
|
||||
for row in reader:
|
||||
n = n + 1
|
||||
|
||||
name, site, grade, fte, nwd, end_date, oop, twi, twi_we, night, night_we, extra = row
|
||||
name, site, grade, fte, nwd, end_date, oop, twi, twi_we, night, night_we, pw1, pw2, extra = row
|
||||
|
||||
# Ignore trainees if fte == 0 (what are they doing here anyway)
|
||||
if int(fte) < 1:
|
||||
@@ -227,6 +227,14 @@ else:
|
||||
worked = night_we.split(" ")[0]
|
||||
allocated = night_we.split(" ")[1][1:-1]
|
||||
previous_shifts["night_weekend".format(site.lower())] = (worked, allocated)
|
||||
if pw1:
|
||||
worked = pw1.split(" ")[0]
|
||||
allocated = pw1.split(" ")[1][1:-1]
|
||||
previous_shifts["weekend_plymouth1"] = (worked, allocated)
|
||||
if pw2:
|
||||
worked = pw2.split(" ")[0]
|
||||
allocated = pw2.split(" ")[1][1:-1]
|
||||
previous_shifts["weekend_plymouth2"] = (worked, allocated)
|
||||
|
||||
|
||||
leave_requests = []
|
||||
|
||||
Reference in New Issue
Block a user