Added handling for stale trains

- Renamed TrainLateness to LateTrain
This commit is contained in:
Tony Bark 2026-08-24 22:53:15 -04:00
parent e0077ec13b
commit f8eef909d2
5 changed files with 72 additions and 17 deletions

View file

@ -49,7 +49,7 @@ struct AmtrakDateFormatting {
}
func isOnTime(actual: String?, scheduled: String?) -> TrainLateness {
func isOnTime(actual: String?, scheduled: String?) -> LateTrain {
guard
let actualDate = parsedDate(from: actual),