Fix: mylenie rozkładów jazdy dla AZ12 i AZ19

This commit is contained in:
2022-01-26 19:17:59 +01:00
parent 95fe9d1072
commit 4c1f892fc4
3 changed files with 5 additions and 2 deletions
+1
View File
@@ -18,6 +18,7 @@ export default interface TrainStop {
departureRealTimeString: string | null; departureRealTimeString: string | null;
departureRealTimestamp: number; departureRealTimestamp: number;
departureDelay: number; departureDelay: number;
pointId: string;
comments?: any; comments?: any;
@@ -20,7 +20,7 @@ export default interface TimetableAPIData {
pointName: string; pointName: string;
pointNameRAW: string; pointNameRAW: string;
entryId: number; entryId: number;
pointId: number; pointId: string;
comments: string | null; comments: string | null;
confirmed: boolean; confirmed: boolean;
isStopped: boolean; isStopped: boolean;
+3 -1
View File
@@ -223,6 +223,7 @@ export const store = createStore<State>({
stopNameRAW: point.pointNameRAW, stopNameRAW: point.pointNameRAW,
stopType: point.pointStopType, stopType: point.pointStopType,
stopDistance: point.pointDistance, stopDistance: point.pointDistance,
pointId: point.pointId,
comments: point.comments, comments: point.comments,
@@ -403,7 +404,8 @@ export const store = createStore<State>({
const stopInfoIndex = timetable.followingStops.findIndex(stop => { const stopInfoIndex = timetable.followingStops.findIndex(stop => {
const stopName = stop.stopNameRAW.toLowerCase(); const stopName = stop.stopNameRAW.toLowerCase();
if (station.generalInfo?.name == "Arkadia Zdrój 2019" && stop.pointId != "1583014379097") return false;
if (stationName === stopName) return true; if (stationName === stopName) return true;
if (stopName.includes(stationName) && !stop.stopName.includes("po.") && !stop.stopName.includes("podg.")) 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; if (stationName.includes(stopName) && !stop.stopName.includes("po.") && !stop.stopName.includes("podg.")) return true;