From acd56cde6c77f651a07c2ccbe5090f912f89d3b9 Mon Sep 17 00:00:00 2001 From: Sanj Date: Tue, 18 Sep 2012 17:55:39 +0530 Subject: [PATCH] python is NOT javascript. --- smsBEST/mumbai/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smsBEST/mumbai/app.py b/smsBEST/mumbai/app.py index 4ba2613..b61a2a2 100644 --- a/smsBEST/mumbai/app.py +++ b/smsBEST/mumbai/app.py @@ -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: