minor - from 'from'

This commit is contained in:
Sanj 2011-08-06 19:57:11 +05:30
parent 413c1ca49e
commit 88709f7bcf

View File

@ -53,7 +53,7 @@ def getBuses(frm, to):
toArr = stopListTo.split(",")
toArr = [val.split("|")[0] for val in toArr]
intersectArr = [val for val in fromArr if val in toArr]
fromToStr = "from " + frm[1] + " to " + to[1] + ": "
fromToStr = frm[1] + " to " + to[1] + ": "
# return ",".join(fromArr) + ",".join(toArr)
if (len(intersectArr) == 0):
return fromToStr + "no direct buses found."