stop.name

This commit is contained in:
Sanj 2012-02-02 19:22:03 +05:30
parent 487cce26c8
commit 013db9d625

View File

@ -147,10 +147,10 @@ def importUniqueRoutes():
from_to = getFromToStopsForRoute(routeObj)
obj.from_stop = from_to[0]
if not stopMapping.has_key(obj.from_stop_txt):
stopMapping[obj.from_stop_txt] = from_to[0].stop
stopMapping[obj.from_stop_txt] = from_to[0].stop.name
obj.to_stop = from_to[1]
if not stopMapping.has_key(obj.to_stop_txt):
stopMapping[obj.to_stop_txt] = from_to[1].stop
stopMapping[obj.to_stop_txt] = from_to[1].stop.name
else: #Else we do fuzzy string matching against all possible values for stopname got from RouteDetails
stopnames = []
stopcodes = []