Added times to traveller csv export

This commit is contained in:
John Mullins
2023-11-02 11:05:44 +11:00
parent d68dcfccc1
commit 350dfe4acb
+4 -1
View File
@@ -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
}