silly, dict is nested
This commit is contained in:
parent
335fd07c2f
commit
48c3375fbd
|
@ -83,8 +83,8 @@ class App(AppBase):
|
||||||
origin_name, dest_name = origin['display_name'], dest['display_name']
|
origin_name, dest_name = origin['display_name'], dest['display_name']
|
||||||
origin_area, dest_area = PUNCT.sub('', origin['area']), PUNCT.sub('', dest['area'])
|
origin_area, dest_area = PUNCT.sub('', origin['area']), PUNCT.sub('', dest['area'])
|
||||||
url = "http://chalobest.in" + detail['route']['url']
|
url = "http://chalobest.in" + detail['route']['url']
|
||||||
if detail['headway']:
|
if detail['route']['headway']:
|
||||||
headway = "Frequency: " + detail['headway'] + " mins"
|
headway = "Frequency: " + detail['route']['headway'] + " mins"
|
||||||
else:
|
else:
|
||||||
headway = "Route currently not running."
|
headway = "Route currently not running."
|
||||||
response = "%s: %s (%s) to %s (%s). %s. %s" % (
|
response = "%s: %s (%s) to %s (%s). %s. %s" % (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user