From f3ca42d303db6f1ea03ab94f9cf04cdb9b4ce6cd Mon Sep 17 00:00:00 2001 From: Sanj Date: Thu, 2 Feb 2012 19:23:08 +0530 Subject: [PATCH] er, ups, just .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 533f3e2..d2a8f26 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.name + stopMapping[obj.from_stop_txt] = from_to[0].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.name + stopMapping[obj.to_stop_txt] = from_to[1].name else: #Else we do fuzzy string matching against all possible values for stopname got from RouteDetails stopnames = [] stopcodes = []