diff --git a/src/lib/ldb/staff-ldb.svelte b/src/lib/ldb/staff-ldb.svelte index d622704..ccc3354 100644 --- a/src/lib/ldb/staff-ldb.svelte +++ b/src/lib/ldb/staff-ldb.svelte @@ -53,43 +53,8 @@ } } - function parseTime(string = ""){ - let output - let change - switch (string) { - case 'Delayed': - output = 'LATE' - change = "changed" - break - case 'Cancelled': - output = 'CANC' - change = "cancelled" - break - case 'On time': - output = 'RT' - change = "" - break - case '': - output = '-' - change = "" - break - case undefined: - output = '-' - change = "" - break - case 'No report': - output = '-' - change = "" - break - case 'undefined': - output = false - change = "" - break - default: - output = string - change = "changed" - } - return {data: output, changed: change} + function parseTime(sch, act){ + return } function parseDateTime(input) { @@ -129,9 +94,13 @@