python is NOT javascript.

This commit is contained in:
Sanj 2012-09-18 17:55:39 +05:30
parent 3af017f7fd
commit acd56cde6c

View File

@ -77,7 +77,7 @@ class App(AppBase):
origin, dest = stops[0]['properties'], stops[-1]['properties']
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
url = "http://chalobest.in" + detail['route']['url']
msg.respond("%s: %s (%s) to %s (%s) %s" % (
",".join(routes), origin_name, origin_area, dest_name, dest_area, url))
elif msg.text.find(" to ") != -1: