Add support for requesting shifts

This commit is contained in:
Ross
2020-05-28 18:16:46 +01:00
parent 469674546d
commit 74484db6c6
6 changed files with 171 additions and 26 deletions
+5 -1
View File
@@ -74,7 +74,11 @@ tables.each((n, table) => {
whole_weekends_worked = whole_weekends_worked - shifts.count(el) / 3
}
// 0.5 for twilights
if(el.includes("twilight")) { days_lost = days_lost + shifts.count(el) / 2 }
if(el.includes("twilight")) {
twilight_days_lost = shifts.count(el) / 2
days_lost = days_lost + twilight_days_lost
}
});