route/freqs/ tweak

This commit is contained in:
Johnson Chetty 2012-09-22 08:46:16 +02:00
parent ea74ed4d1a
commit 2ff27c5e3f
3 changed files with 136 additions and 1 deletions

View File

@ -0,0 +1,133 @@
service_id,date,exception_type
HOL,20120815,1
HOL,20120818,1
HOL,20120820,1
HOL,20120919,1
HOL,20121002,1
HOL,20121024,1
HOL,20121113,1
HOL,20121114,1
HOL,20121026,1
HOL,20121128,1
HOL,20121125,1
MF&HOL,20120815,1
MF&HOL,20120818,1
MF&HOL,20120820,1
MF&HOL,20120919,1
MF&HOL,20121002,1
MF&HOL,20121024,1
MF&HOL,20121113,1
MF&HOL,20121114,1
MF&HOL,20121026,1
MF&HOL,20121128,1
MF&HOL,20121125,1
SH,20120815,1
SH,20120818,1
SH,20120820,1
SH,20120919,1
SH,20121002,1
SH,20121024,1
SH,20121113,1
SH,20121114,1
SH,20121026,1
SH,20121128,1
SH,20121125,1
AD,20120815,1
AD,20120818,1
AD,20120820,1
AD,20120919,1
AD,20121002,1
AD,20121024,1
AD,20121113,1
AD,20121114,1
AD,20121026,1
AD,20121128,1
AD,20121125,1
MS&HOL,20120815,1
MS&HOL,20120818,1
MS&HOL,20120820,1
MS&HOL,20120919,1
MS&HOL,20121002,1
MS&HOL,20121024,1
MS&HOL,20121113,1
MS&HOL,20121114,1
MS&HOL,20121026,1
MS&HOL,20121128,1
MS&HOL,20121125,1
SAT/SH,20120815,1
SAT/SH,20120818,1
SAT/SH,20120820,1
SAT/SH,20120919,1
SAT/SH,20121002,1
SAT/SH,20121024,1
SAT/SH,20121113,1
SAT/SH,20121114,1
SAT/SH,20121026,1
SAT/SH,20121128,1
SAT/SH,20121125,1
SAT&HOL,20120815,1
SAT&HOL,20120818,1
SAT&HOL,20120820,1
SAT&HOL,20120919,1
SAT&HOL,20121002,1
SAT&HOL,20121024,1
SAT&HOL,20121113,1
SAT&HOL,20121114,1
SAT&HOL,20121026,1
SAT&HOL,20121128,1
SAT&HOL,20121125,1
SAT&SH,20120815,1
SAT&SH,20120818,1
SAT&SH,20120820,1
SAT&SH,20120919,1
SAT&SH,20121002,1
SAT&SH,20121024,1
SAT&SH,20121113,1
SAT&SH,20121114,1
SAT&SH,20121026,1
SAT&SH,20121128,1
SAT&SH,20121125,1
SAT/SUND&HOL,20120815,1
SAT/SUND&HOL,20120818,1
SAT/SUND&HOL,20120820,1
SAT/SUND&HOL,20120919,1
SAT/SUND&HOL,20121002,1
SAT/SUND&HOL,20121024,1
SAT/SUND&HOL,20121113,1
SAT/SUND&HOL,20121114,1
SAT/SUND&HOL,20121026,1
SAT/SUND&HOL,20121128,1
SAT/SUND&HOL,20121125,1
S/H,20120815,1
S/H,20120818,1
S/H,20120820,1
S/H,20120919,1
S/H,20121002,1
S/H,20121024,1
S/H,20121113,1
S/H,20121114,1
S/H,20121026,1
S/H,20121128,1
S/H,20121125,1
"SAT,SUN&HOL",20120815,1
"SAT,SUN&HOL",20120818,1
"SAT,SUN&HOL",20120820,1
"SAT,SUN&HOL",20120919,1
"SAT,SUN&HOL",20121002,1
"SAT,SUN&HOL",20121024,1
"SAT,SUN&HOL",20121113,1
"SAT,SUN&HOL",20121114,1
"SAT,SUN&HOL",20121026,1
"SAT,SUN&HOL",20121128,1
"SAT,SUN&HOL",20121125,1
FH,20120815,1
FH,20120818,1
FH,20120820,1
FH,20120919,1
FH,20121002,1
FH,20121024,1
FH,20121113,1
FH,20121114,1
FH,20121026,1
FH,20121128,1
FH,20121125,1

View File

@ -0,0 +1,2 @@
feed_publisher_name,feed_publisher_url,feed_lang,feed_start_date,feed_end_date,feed_version
ChaloBEST,http://chalobest.in,en,,,0.31

View File

@ -292,7 +292,7 @@ def route_headway(request, code):
return render_to_json_response( return render_to_json_response(
{ {
'route': route.get_dict(), 'route': route.get_dict(),
'frequency': str(min(frequencies)) + "-" + str(max(frequencies)) 'frequency': str(min(frequencies)) + "-" + str(max(frequencies)) if min(frequencies)!=max(frequencies) else max(frequencies)
#'scheds': [ (s.headway1, s.headway2, s.headway3, s.headway4, str(s.unique_route) ) for s in scheds] #'scheds': [ (s.headway1, s.headway2, s.headway3, s.headway4, str(s.unique_route) ) for s in scheds]
}) })