route url sms

This commit is contained in:
Sanj 2012-09-18 17:54:13 +05:30
parent 742e586a3f
commit 3af017f7fd

View File

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