From 08f93e930e6f0046d3617a47f629e681f3511825 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Tue, 21 Feb 2017 19:45:00 +0100 Subject: trip-query: Add departure and arrival platform to default output --- examples/trip-query.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'examples') diff --git a/examples/trip-query.py b/examples/trip-query.py index c3d541f..a9c5900 100644 --- a/examples/trip-query.py +++ b/examples/trip-query.py @@ -119,9 +119,13 @@ def format_terse(trips): end = trip.props.parts[-1].props.end print(" Start: %s" % start.props.name) print(" Departure: %s" % start.props.departure.format("%F %H:%M")) + if start.props.dep_plat: + print(" Platform: %s" % start.props.dep_plat) print(" Delay: %s" % start.props.departure_delay) print(" End: %s" % end.props.name) print(" Arrival: %s" % end.props.arrival.format("%F %H:%M")) + if end.props.arr_plat: + print(" Platform: %s" % end.props.arr_plat) print(" Delay: %s" % end.props.arrival_delay) print(" Switches: %d" % (len(trip.props.parts)-1)) print(' Duration: %.2d:%.2d' % duration(trip)) -- cgit v1.2.3