update previous

This commit is contained in:
Ross
2021-01-18 12:00:16 +00:00
parent 3a543ef5b4
commit 1c039c6d13
2 changed files with 57 additions and 49 deletions
+9 -1
View File
@@ -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 = []