mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-04 05:48: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;
|
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
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user