From 013db9d625a75cf3423bb61543ac1954bf77b48f Mon Sep 17 00:00:00 2001 From: Sanj Date: Thu, 2 Feb 2012 19:22:03 +0530 Subject: [PATCH] stop.name --- chaloBEST/imports/import_atlas.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chaloBEST/imports/import_atlas.py b/chaloBEST/imports/import_atlas.py index 237fdd3..533f3e2 100644 --- a/chaloBEST/imports/import_atlas.py +++ b/chaloBEST/imports/import_atlas.py @@ -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 = []