Update staffLDB
This commit is contained in:
parent
fdd670cbe1
commit
c4841f6090
@ -58,10 +58,6 @@
|
|||||||
isLoading = false; // Clear loading state
|
isLoading = false; // Clear loading state
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function parseTime(sch, act){
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
function parseDateTime(input) {
|
function parseDateTime(input) {
|
||||||
const dt = new Date(input);
|
const dt = new Date(input);
|
||||||
@ -79,10 +75,35 @@
|
|||||||
return json
|
return json
|
||||||
}
|
}
|
||||||
|
|
||||||
async function generateServiceStats(service) {
|
async function generateServiceData(service) {
|
||||||
|
let serviceData = {
|
||||||
|
to: await parseLocation(),
|
||||||
|
from: await parseLocation(),
|
||||||
|
length: await getTrainLength(service),
|
||||||
|
platform: await parsePlatform(),
|
||||||
|
}
|
||||||
|
return serviceData;
|
||||||
|
}
|
||||||
|
|
||||||
|
async function getTrainLength(service) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async function parseLocation(location) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
async function parsePlatform(platform) {
|
||||||
|
if (platform === "TBC") {
|
||||||
|
return '-'
|
||||||
|
}
|
||||||
|
return platform;
|
||||||
|
}
|
||||||
|
|
||||||
|
function parseTime(service){
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
function processNrcc(messages) { // Remove newlines and then <p> tags from input and append to array
|
function processNrcc(messages) { // Remove newlines and then <p> tags from input and append to array
|
||||||
let arrMessages;
|
let arrMessages;
|
||||||
if (!Array.isArray(messages)) {
|
if (!Array.isArray(messages)) {
|
||||||
@ -122,7 +143,7 @@
|
|||||||
<th class="time">Exp Dep</th>
|
<th class="time">Exp Dep</th>
|
||||||
</tr>
|
</tr>
|
||||||
{#each services as service}
|
{#each services as service}
|
||||||
{#await generateServiceStats(service)}
|
{#await generateServiceData(service)}
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="8">
|
<td colspan="8">
|
||||||
Loading...
|
Loading...
|
||||||
|
Loading…
Reference in New Issue
Block a user