extend not append

This commit is contained in:
Sanj 2012-09-06 19:19:08 +05:30
parent 92dd5b2a91
commit 11fb39da4a

View File

@ -27,7 +27,7 @@ def get_routes_for_matches(stops):
same_stops.append(s)
routes = []
for stop in same_stops:
routes.append(stop['properties']['routes'].split(", "))
routes.extend(stop['properties']['routes'].split(", "))
return routes
class App(AppBase):