Enhance operations configuration and UI; add new functions for schedule upload and duty filtering

This commit is contained in:
ImBenji
2026-03-29 15:10:07 +01:00
parent 427bcadc77
commit 7049e58049
8 changed files with 1435 additions and 314 deletions
+3 -1
View File
@@ -351,10 +351,12 @@ class StagecoachScheduleParser implements ScheduleParser {
? stations.reversed.toList()
: List<String>.from(stations);
final normalizedDuty = dutyId.startsWith("2/") ? dutyId.substring(2) : dutyId;
return Trip(
scheduledTime: scheduledTime,
tripNumber: runNumber,
dutyNumber: dutyId,
dutyNumber: normalizedDuty,
busWorkNumber: busWorkingNo,
tripType: tripType,
isFinishing: segment.contains("BUS FIN"),