Fix check for service supression
Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
parent
1805040f93
commit
63fa73ac74
File diff suppressed because it is too large
Load Diff
@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"GetStationBoardResult": {
|
|
||||||
"generatedAt": "2023-01-14T11:23:12.6558466+00:00",
|
|
||||||
"locationName": "Pilning",
|
|
||||||
"crs": "PIL",
|
|
||||||
"nrccMessages": {
|
|
||||||
"message": "\nPoor weather affecting services in Wales due to flooding on the railway More details can be found in <a href=\"https://t.co/uBU966PUmX\">Latest Travel News</a>."
|
|
||||||
},
|
|
||||||
"platformAvailable": "true"
|
|
||||||
}
|
|
||||||
}
|
|
500213
.test-tools/all.json
500213
.test-tools/all.json
File diff suppressed because it is too large
Load Diff
17729
.test-tools/clean.json
17729
.test-tools/clean.json
File diff suppressed because it is too large
Load Diff
@ -1,52 +0,0 @@
|
|||||||
{
|
|
||||||
"service": [
|
|
||||||
{
|
|
||||||
"sta": "16:07",
|
|
||||||
"eta": "On time",
|
|
||||||
"operator": "South Western Railway",
|
|
||||||
"operatorCode": "SW",
|
|
||||||
"serviceType": "ferry",
|
|
||||||
"serviceID": "37782PHBR____",
|
|
||||||
"origin": {
|
|
||||||
"location": { "locationName": "Ryde Pier Head", "crs": "RYP" }
|
|
||||||
},
|
|
||||||
"destination": {
|
|
||||||
"location": { "locationName": "Portsmouth Harbour", "crs": "PMH" }
|
|
||||||
},
|
|
||||||
"previousCallingPoints": {
|
|
||||||
"callingPointList": {
|
|
||||||
"callingPoint": {
|
|
||||||
"locationName": "Ryde Pier Head",
|
|
||||||
"crs": "RYP",
|
|
||||||
"st": "15:45",
|
|
||||||
"et": "On time"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"std": "16:15",
|
|
||||||
"etd": "On time",
|
|
||||||
"operator": "South Western Railway",
|
|
||||||
"operatorCode": "SW",
|
|
||||||
"serviceType": "ferry",
|
|
||||||
"serviceID": "37746PHBR____",
|
|
||||||
"origin": {
|
|
||||||
"location": { "locationName": "Portsmouth Harbour", "crs": "PMH" }
|
|
||||||
},
|
|
||||||
"destination": {
|
|
||||||
"location": { "locationName": "Ryde Pier Head", "crs": "RYP" }
|
|
||||||
},
|
|
||||||
"subsequentCallingPoints": {
|
|
||||||
"callingPointList": {
|
|
||||||
"callingPoint": {
|
|
||||||
"locationName": "Ryde Pier Head",
|
|
||||||
"crs": "RYP",
|
|
||||||
"st": "16:37",
|
|
||||||
"et": "On time"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
@ -111,7 +111,7 @@ function transformTrainServices(input: any): TrainServices[] {
|
|||||||
|
|
||||||
function checkIsSupressed(service: TrainServices): string | undefined {
|
function checkIsSupressed(service: TrainServices): string | undefined {
|
||||||
logger.trace("utils/translators/ldb/staffStation.checkIsSupressed: Running");
|
logger.trace("utils/translators/ldb/staffStation.checkIsSupressed: Running");
|
||||||
if (service.serviceIsSupressed === "true" || service.isNonPublic === "true") {
|
if (service.serviceIsSupressed === "true" || service.isPassengerService === "false") {
|
||||||
return "true";
|
return "true";
|
||||||
} else {
|
} else {
|
||||||
return undefined;
|
return undefined;
|
||||||
|
Loading…
Reference in New Issue
Block a user