mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +00:00
Fix: mylenie rozkładów jazdy dla AZ12 i AZ19
This commit is contained in:
@@ -18,6 +18,7 @@ export default interface TrainStop {
|
||||
departureRealTimeString: string | null;
|
||||
departureRealTimestamp: number;
|
||||
departureDelay: number;
|
||||
pointId: string;
|
||||
|
||||
comments?: any;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
+3
-1
@@ -223,6 +223,7 @@ export const store = createStore<State>({
|
||||
stopNameRAW: point.pointNameRAW,
|
||||
stopType: point.pointStopType,
|
||||
stopDistance: point.pointDistance,
|
||||
pointId: point.pointId,
|
||||
|
||||
comments: point.comments,
|
||||
|
||||
@@ -403,7 +404,8 @@ export const store = createStore<State>({
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user