mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +00:00
fix: rozkłady jazdy pokazują się na innych serwerach
This commit is contained in:
@@ -255,7 +255,8 @@ export default defineComponent({
|
||||
?.filter(
|
||||
(train) =>
|
||||
train.checkpointName.toLocaleLowerCase() ==
|
||||
(this.chosenCheckpoint || this.station.name).toLocaleLowerCase()
|
||||
(this.chosenCheckpoint || this.station.name).toLocaleLowerCase() &&
|
||||
train.region == this.store.region.id
|
||||
)
|
||||
.sort((a, b) => {
|
||||
if (a.stopStatusID > b.stopStatusID) return 1;
|
||||
|
||||
@@ -164,6 +164,8 @@ export interface ScheduledTrain {
|
||||
stopLabel: string;
|
||||
stopStatus: StopStatus;
|
||||
stopStatusID: number;
|
||||
|
||||
region: string;
|
||||
}
|
||||
|
||||
export enum StopStatus {
|
||||
|
||||
@@ -175,6 +175,8 @@ export function getCheckpointTrain(
|
||||
stopStatus: trainStopStatus.stopStatus,
|
||||
stopStatusID: trainStopStatus.stopStatusID,
|
||||
|
||||
region: train.region,
|
||||
|
||||
arrivingLine,
|
||||
departureLine,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user