From 16696ec09c114b477128aa56c1be8c7f75487328 Mon Sep 17 00:00:00 2001 From: Sanj Date: Tue, 11 Sep 2012 16:43:22 +0530 Subject: [PATCH] fix errors for stop lookups --- smsBEST/mumbai/app.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/smsBEST/mumbai/app.py b/smsBEST/mumbai/app.py index 429f1a7..6745084 100644 --- a/smsBEST/mumbai/app.py +++ b/smsBEST/mumbai/app.py @@ -48,13 +48,13 @@ def get_stops_for_string(s): if len(stops_results) == 0: return None same_stops = [] - same_stops.append(stops[0]) + same_stops.append(stops_results[0]) if len(stops_results) > 1: for s in stops_results[1:]: - if s['properties']['official_name'] == stops[0]['properties']['official_name']: + if s['properties']['official_name'] == same_stops[0]['properties']['official_name']: same_stops.append(s) return { - 'name': stops[0]['properties']['display_name'], + 'name': same_stops[0]['properties']['display_name'], 'stops': same_stops }