Fixed shuttle count

This commit is contained in:
John Mullins
2024-12-13 09:49:12 +11:00
parent dabce7f360
commit 034b9f7d91
3 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -122,7 +122,7 @@ def shuttle_route_context(shuttle, date=None):
shuttle_travellers.append({
'display': f"{traveller} ({traveller.get_year_level_display()}, {traveller.school})",
})
return {'shuttle': shuttle, 'shuttle_travellers': shuttle_travellers}
return {'shuttle': shuttle, 'shuttle_travellers': shuttle_travellers, 'traveller_count': shuttle.traveller_count(date)}
def school_travellerRoute_context(school, date=None):