From 742e586a3faf96e10a225ef49a23873f928ffe46 Mon Sep 17 00:00:00 2001 From: Sanj Date: Tue, 18 Sep 2012 17:43:18 +0530 Subject: [PATCH] route urls in sms --- smsBEST/mumbai/app.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/smsBEST/mumbai/app.py b/smsBEST/mumbai/app.py index 33d7e25..e19d454 100644 --- a/smsBEST/mumbai/app.py +++ b/smsBEST/mumbai/app.py @@ -77,8 +77,9 @@ 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']) - msg.respond("%s: %s (%s) to %s (%s)" % ( - ",".join(routes), origin_name, origin_area, dest_name, dest_area)) + url = 'http://chalobest.in/route/' + detail.alias + 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: from_txt = msg.text.lower().split("to")[0].strip()