From 499229e30e29b8019e79b42540f67940f00f4ec0 Mon Sep 17 00:00:00 2001 From: Sanj Date: Thu, 2 Feb 2012 19:15:58 +0530 Subject: [PATCH] RouteDetails -> RouteDetail --- 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 782adc9..2633ca0 100644 --- a/chaloBEST/imports/import_atlas.py +++ b/chaloBEST/imports/import_atlas.py @@ -154,7 +154,7 @@ def importUniqueRoutes(): else: #Else we do fuzzy string matching against all possible values for stopname got from RouteDetails stopnames = [] stopcodes = [] - for r in RouteDetails.objects.filter(route=routeObj): + for r in RouteDetail.objects.filter(route=routeObj): stopnames.append(r.stop.name) stopcodes.append(r.stop.code) from_fuzz = fuzzprocess.extractOne(thisRoute['from'], stopnames) @@ -229,7 +229,7 @@ Passed a route code, it gets stop codes for the first and last stop ''' def getFromToStopsForRoute(routeCode): # fromStr = row[2] - routeDetails = RouteDetails.objects.filter(rno=routeCode).order_by('stopsr') + routeDetails = RouteDetail.objects.filter(rno=routeCode).order_by('stopsr') if routeDetails.count() == 0: return None fromStop = routeDetails[0].stop