routedetails field changes, silly
This commit is contained in:
parent
499229e30e
commit
246af58b6e
|
@ -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 = RouteDetail.objects.filter(rno=routeCode).order_by('stopsr')
|
||||
routeDetails = RouteDetail.objects.filter(code=routeCode).order_by('serial')
|
||||
if routeDetails.count() == 0:
|
||||
return None
|
||||
fromStop = routeDetails[0].stop
|
||||
|
|
Loading…
Reference in New Issue
Block a user