From 350dfe4acb8acf68afefa6bb5d5548cb181eb9e2 Mon Sep 17 00:00:00 2001 From: John Mullins Date: Thu, 2 Nov 2023 11:05:44 +1100 Subject: [PATCH] Added times to traveller csv export --- busManager/coord/context_helpers.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/busManager/coord/context_helpers.py b/busManager/coord/context_helpers.py index 6d95927..52314fd 100644 --- a/busManager/coord/context_helpers.py +++ b/busManager/coord/context_helpers.py @@ -122,6 +122,7 @@ def school_travellerRoute_context(school): def traveller_route_context(traveller_route): traveller = traveller_route.traveller + bus_stop = traveller_route.busStop return { 'first_name': traveller.first_name, 'last_name': traveller.last_name, @@ -134,7 +135,9 @@ def traveller_route_context(traveller_route): 'eligibility': traveller.get_eligibility_status_display(), 'shuttle': traveller.shuttle, 'route': traveller_route.busStop.bus, - 'stop': f"#{traveller_route.busStop.get_stop_number()} - {traveller_route.busStop.address}" + 'stop': f"#{bus_stop.get_stop_number()} - {bus_stop.address}", + 'pickup': bus_stop.am_time, + 'drop-off': bus_stop.pm_time }