extend not append
This commit is contained in:
parent
92dd5b2a91
commit
11fb39da4a
|
@ -27,7 +27,7 @@ def get_routes_for_matches(stops):
|
||||||
same_stops.append(s)
|
same_stops.append(s)
|
||||||
routes = []
|
routes = []
|
||||||
for stop in same_stops:
|
for stop in same_stops:
|
||||||
routes.append(stop['properties']['routes'].split(", "))
|
routes.extend(stop['properties']['routes'].split(", "))
|
||||||
return routes
|
return routes
|
||||||
|
|
||||||
class App(AppBase):
|
class App(AppBase):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user