From 3ff07f1acc7c80d2166d6572d7eefbbd38c7944b Mon Sep 17 00:00:00 2001 From: Johnson Chetty Date: Sat, 22 Sep 2012 09:21:14 +0200 Subject: [PATCH] route/freqs/ tweak0.2 --- chaloBEST/mumbai/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chaloBEST/mumbai/views.py b/chaloBEST/mumbai/views.py index f2b173c..80e2313 100644 --- a/chaloBEST/mumbai/views.py +++ b/chaloBEST/mumbai/views.py @@ -292,7 +292,7 @@ def route_headway(request, code): return render_to_json_response( { 'route': route.get_dict(), - 'frequency': str(min(frequencies)) + "-" + str(max(frequencies)) if min(frequencies)!=max(frequencies) else max(frequencies) + 'frequency': str(min(frequencies)) + "-" + str(max(frequencies)) if min(frequencies)!=max(frequencies) else str(max(frequencies)) #'scheds': [ (s.headway1, s.headway2, s.headway3, s.headway4, str(s.unique_route) ) for s in scheds] })