routedetails field changes, silly

This commit is contained in:
Sanj 2012-02-02 19:17:26 +05:30
parent 499229e30e
commit 246af58b6e

View File

@ -229,7 +229,7 @@ Passed a route code, it gets stop codes for the first and last stop
''' '''
def getFromToStopsForRoute(routeCode): def getFromToStopsForRoute(routeCode):
# fromStr = row[2] # fromStr = row[2]
routeDetails = RouteDetail.objects.filter(rno=routeCode).order_by('stopsr') routeDetails = RouteDetail.objects.filter(code=routeCode).order_by('serial')
if routeDetails.count() == 0: if routeDetails.count() == 0:
return None return None
fromStop = routeDetails[0].stop fromStop = routeDetails[0].stop