From 48c3375fbd767d1874d17ed63545576d5a678e18 Mon Sep 17 00:00:00 2001 From: Sanj Date: Fri, 5 Oct 2012 19:59:16 +0530 Subject: [PATCH] silly, dict is nested --- smsBEST/mumbai/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smsBEST/mumbai/app.py b/smsBEST/mumbai/app.py index d8367d4..ac505ca 100644 --- a/smsBEST/mumbai/app.py +++ b/smsBEST/mumbai/app.py @@ -83,8 +83,8 @@ class App(AppBase): origin_name, dest_name = origin['display_name'], dest['display_name'] origin_area, dest_area = PUNCT.sub('', origin['area']), PUNCT.sub('', dest['area']) url = "http://chalobest.in" + detail['route']['url'] - if detail['headway']: - headway = "Frequency: " + detail['headway'] + " mins" + if detail['route']['headway']: + headway = "Frequency: " + detail['route']['headway'] + " mins" else: headway = "Route currently not running." response = "%s: %s (%s) to %s (%s). %s. %s" % (