stop.name
This commit is contained in:
parent
487cce26c8
commit
013db9d625
|
@ -147,10 +147,10 @@ def importUniqueRoutes():
|
||||||
from_to = getFromToStopsForRoute(routeObj)
|
from_to = getFromToStopsForRoute(routeObj)
|
||||||
obj.from_stop = from_to[0]
|
obj.from_stop = from_to[0]
|
||||||
if not stopMapping.has_key(obj.from_stop_txt):
|
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]
|
obj.to_stop = from_to[1]
|
||||||
if not stopMapping.has_key(obj.to_stop_txt):
|
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
|
else: #Else we do fuzzy string matching against all possible values for stopname got from RouteDetails
|
||||||
stopnames = []
|
stopnames = []
|
||||||
stopcodes = []
|
stopcodes = []
|
||||||
|
|
Loading…
Reference in New Issue
Block a user