Skip to content

Commit 9235cac

Browse files
committed
Add filter to only keep trains continuing to the end of the line
1 parent 0693f96 commit 9235cac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dartDown.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ async function dartDown() {
9999
})
100100
.filter((estimate) => parseInt(estimate.Duein) >= MINUTE_CUTOFF) // Keep trains that are due in less than the cutoff
101101
.filter((estimate) => estimate.Traintype === 'DART10' || estimate.Traintype === 'DART') // Keep only DART trains
102-
.filter((estimate) => estimate.Destination !== estimate.Stationfullname)
102+
.filter((estimate) => estimate.Destination === 'Bray' || estimate.Destination === 'Greystones' || estimate.Destination === 'Howth' || estimate.Destination === 'Malahide') // Keep only trains continuing to the end of the line
103103
.sort((a, b) => parseInt(a.Duein) - parseInt(b.Duein));
104104

105105
// Hide the error state

0 commit comments

Comments
 (0)