Skip to content

Commit

Permalink
Only spin stops with levelup script (#2509)
Browse files Browse the repository at this point in the history
* Only spin stops

* Fix code :D
  • Loading branch information
friscoMad authored and sebastienvercammen committed Mar 4, 2018
1 parent 3f6b7c3 commit ad73cbf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/levelup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ def get_location_forts(api, account, location):
cells = response['responses']['GET_MAP_OBJECTS'].map_cells
forts = []
for i, cell in enumerate(cells):
forts += cell.forts
for fort in cell.forts:
# Only use stops.
if fort.type == 1:
forts.append(fort)
if not forts:
return (ErrorType.no_stops, None)
return (None, forts)
Expand Down

0 comments on commit ad73cbf

Please sign in to comment.