mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-04 22:08:12 +00:00
fix: rozkłady jazdy pokazują się na innych serwerach
This commit is contained in:
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "stacjownik",
|
"name": "stacjownik",
|
||||||
"version": "1.19.0",
|
"version": "1.19.1",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "stacjownik",
|
"name": "stacjownik",
|
||||||
"version": "1.19.0",
|
"version": "1.19.1",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"core-js": "^3.32.2",
|
"core-js": "^3.32.2",
|
||||||
"dotenv": "^16.3.1",
|
"dotenv": "^16.3.1",
|
||||||
|
|||||||
@@ -255,7 +255,8 @@ export default defineComponent({
|
|||||||
?.filter(
|
?.filter(
|
||||||
(train) =>
|
(train) =>
|
||||||
train.checkpointName.toLocaleLowerCase() ==
|
train.checkpointName.toLocaleLowerCase() ==
|
||||||
(this.chosenCheckpoint || this.station.name).toLocaleLowerCase()
|
(this.chosenCheckpoint || this.station.name).toLocaleLowerCase() &&
|
||||||
|
train.region == this.store.region.id
|
||||||
)
|
)
|
||||||
.sort((a, b) => {
|
.sort((a, b) => {
|
||||||
if (a.stopStatusID > b.stopStatusID) return 1;
|
if (a.stopStatusID > b.stopStatusID) return 1;
|
||||||
|
|||||||
@@ -164,6 +164,8 @@ export interface ScheduledTrain {
|
|||||||
stopLabel: string;
|
stopLabel: string;
|
||||||
stopStatus: StopStatus;
|
stopStatus: StopStatus;
|
||||||
stopStatusID: number;
|
stopStatusID: number;
|
||||||
|
|
||||||
|
region: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum StopStatus {
|
export enum StopStatus {
|
||||||
|
|||||||
@@ -175,6 +175,8 @@ export function getCheckpointTrain(
|
|||||||
stopStatus: trainStopStatus.stopStatus,
|
stopStatus: trainStopStatus.stopStatus,
|
||||||
stopStatusID: trainStopStatus.stopStatusID,
|
stopStatusID: trainStopStatus.stopStatusID,
|
||||||
|
|
||||||
|
region: train.region,
|
||||||
|
|
||||||
arrivingLine,
|
arrivingLine,
|
||||||
departureLine,
|
departureLine,
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user