hotfix: parsing stops

This commit is contained in:
2025-01-31 22:50:31 +01:00
parent 9094a0b784
commit ff14e362bb
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ const computedTimetableRows = computed(() => {
abbrevs = getAbbrevs(currentPath.departureLineData); abbrevs = getAbbrevs(currentPath.departureLineData);
} }
// console.debug('=========== ' + this.selectedTrain.trainNo + ' ==========='); // console.debug('=========== ' + timetableData.trainNo + ' ===========');
const stopList = parseStopListString(timetableData.stopListString); const stopList = parseStopListString(timetableData.stopListString);
+1 -1
View File
@@ -51,7 +51,7 @@ export const useGlobalStore = defineStore('global', {
trainMaxSpeed: selectedTrain.timetable.trainMaxSpeed, trainMaxSpeed: selectedTrain.timetable.trainMaxSpeed,
timetableId: selectedTrain.timetable.timetableId, timetableId: selectedTrain.timetable.timetableId,
stopListString: selectedTrain.timetable.stopList stopListString: selectedTrain.timetable.stopList
.filter((stop) => stop.mainStop || (/^podg|po|pe$/.test(stop.stopNameRAW) && !/^sbl/i.test(stop.stopNameRAW))) .filter((stop) => stop.mainStop || (/^podg|po|pe$/.test(stop.stopNameRAW)))
.map( .map(
(stop) => (stop) =>
`${stop.arrivalLine ?? ''};${stop.arrivalTimestamp};${stop.stopNameRAW};${stop.stopTime ? stop.stopTime + '_' + stop.stopType : ''};${ `${stop.arrivalLine ?? ''};${stop.arrivalTimestamp};${stop.stopNameRAW};${stop.stopTime ? stop.stopTime + '_' + stop.stopType : ''};${