Skip to content

Commit

Permalink
#15: bugfix, iso_ts
Browse files Browse the repository at this point in the history
  • Loading branch information
aschuma committed Mar 28, 2024
1 parent 6f0f6c6 commit 7cf7555
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions service/v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,17 @@ def extract_data(connections):
"travel_time": travel_time,
"number": number,
"numbers": number_list,
"details" : [ {
"from": c.origin.name,
"from_id": c.origin.id,
"to" : c.destination.name,
"to_id" : c.destination.id,
"number" : c.transportation.number,
"departure_planed" : connection.origin.departure_time_planned,
"departure_estimated" : connection.origin.departure_time_estimated,
"arrival_planed" : connection.destination.arrival_time_planned,
"arrival_estimated" : connection.destination.arrival_time_estimated
} for c in connections]
"details": [{
"from": c.origin.name,
"from_id": c.origin.id,
"to": c.destination.name,
"to_id": c.destination.id,
"number": c.transportation.number,
"departure_planed": iso_ts(connection.origin.departure_time_planned),
"departure_estimated": iso_ts(connection.origin.departure_time_estimated),
"arrival_planed": iso_ts(connection.destination.arrival_time_planned),
"arrival_estimated": iso_ts(connection.destination.arrival_time_estimated)
} for c in connections]
}


Expand Down

0 comments on commit 7cf7555

Please sign in to comment.