Skip to content

Commit

Permalink
Fix bug with -n flag and stations
Browse files Browse the repository at this point in the history
  • Loading branch information
eskerda committed Feb 13, 2017
1 parent 55f2741 commit 3d306d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import colorama
from iso3166 import countries

__version__ = '0.1.5'
__version__ = '0.1.6'

client = citybikes.Client()

Expand Down Expand Up @@ -123,7 +123,7 @@ def show(address, geocode, n, color, output_json):
err=True, color=color)
geocode = False
if n == 0:
n = len(stations)
n = len(network.stations)

stations = [s for s, d in network.stations.near(lat, lng)][:n]
net_name = network_name_template.format(network, network['location'])
Expand Down

0 comments on commit 3d306d1

Please sign in to comment.