use original time for delay output

This commit is contained in:
Christopher Teutsch 2019-05-15 22:24:18 +02:00
parent 2903eb9c0d
commit 5e7434b20b
Signed by: iwonder
GPG Key ID: 0EE33D788D50130D

View File

@ -129,7 +129,7 @@ def fixup_data(d: dict) -> dict:
def print_trip(trip: dict) -> None: def print_trip(trip: dict) -> None:
trip_part = "The {}:{} {} (???:{}: :{}) service to {} ".format(trip['hour'], trip['minute'], trip['lineNumber'], trip['lineCode'], trip['directionCode'], trip['direction']) trip_part = "The {}:{} {} (???:{}: :{}) service to {} ".format(trip['orgHour'], trip['orgMinute'], trip['lineNumber'], trip['lineCode'], trip['directionCode'], trip['direction'])
if is_cancelled(trip): if is_cancelled(trip):
print(trip_part + "is cancelled.") print(trip_part + "is cancelled.")
elif is_late(trip): elif is_late(trip):