update timetable dispaly of remote sites

This commit is contained in:
Ross
2022-02-25 17:59:48 +00:00
parent 9e873ac5f7
commit ff03358119
5 changed files with 34 additions and 46 deletions
+1 -6
View File
@@ -52,10 +52,6 @@ class Worker:
self.bank_holiday_extra = bank_holiday_extra
self.remote_site = remote_site
if remote_site == "plymouth" or remote_site == "":
self.night_at_derriford = 1
else:
self.night_at_derriford = 0
self.previous_shifts = previous_shifts
@@ -181,12 +177,11 @@ class Worker:
def __str__(self) -> str:
nwd = ", ".join([str(i) for i in self.nwd]) if self.nwd is not None else ""
return "{} {} [{}] PROC SITE:{} ({})".format(
return "{} {} [{}] REMOTE SITE:{}".format(
self.name,
(self.site, self.grade, self.fte_adj),
nwd,
self.remote_site,
self.night_at_derriford,
)
def get_details(self) -> str: