From 4c1f892fc48f6190cf0e222f7f5d339a9234a19f Mon Sep 17 00:00:00 2001 From: Spythere Date: Wed, 26 Jan 2022 19:17:59 +0100 Subject: [PATCH] =?UTF-8?q?Fix:=20mylenie=20rozk=C5=82ad=C3=B3w=20jazdy=20?= =?UTF-8?q?dla=20AZ12=20i=20AZ19?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/scripts/interfaces/TrainStop.ts | 1 + src/scripts/interfaces/api/TimetableAPIData.ts | 2 +- src/store/index.ts | 4 +++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/scripts/interfaces/TrainStop.ts b/src/scripts/interfaces/TrainStop.ts index df2ad9a..6ed9890 100644 --- a/src/scripts/interfaces/TrainStop.ts +++ b/src/scripts/interfaces/TrainStop.ts @@ -18,6 +18,7 @@ export default interface TrainStop { departureRealTimeString: string | null; departureRealTimestamp: number; departureDelay: number; + pointId: string; comments?: any; diff --git a/src/scripts/interfaces/api/TimetableAPIData.ts b/src/scripts/interfaces/api/TimetableAPIData.ts index de18ffb..3904ce3 100644 --- a/src/scripts/interfaces/api/TimetableAPIData.ts +++ b/src/scripts/interfaces/api/TimetableAPIData.ts @@ -20,7 +20,7 @@ export default interface TimetableAPIData { pointName: string; pointNameRAW: string; entryId: number; - pointId: number; + pointId: string; comments: string | null; confirmed: boolean; isStopped: boolean; diff --git a/src/store/index.ts b/src/store/index.ts index 332f5eb..7609069 100644 --- a/src/store/index.ts +++ b/src/store/index.ts @@ -223,6 +223,7 @@ export const store = createStore({ stopNameRAW: point.pointNameRAW, stopType: point.pointStopType, stopDistance: point.pointDistance, + pointId: point.pointId, comments: point.comments, @@ -403,7 +404,8 @@ export const store = createStore({ const stopInfoIndex = timetable.followingStops.findIndex(stop => { const stopName = stop.stopNameRAW.toLowerCase(); - + if (station.generalInfo?.name == "Arkadia Zdrój 2019" && stop.pointId != "1583014379097") return false; + if (stationName === stopName) return true; if (stopName.includes(stationName) && !stop.stopName.includes("po.") && !stop.stopName.includes("podg.")) return true; if (stationName.includes(stopName) && !stop.stopName.includes("po.") && !stop.stopName.includes("podg.")) return true;