Skip to content

Commit

Permalink
SKALE-1610 Fix metrics commands
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgex committed Nov 19, 2019
1 parent 2b3715d commit 1f4d8ce
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cli/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ def metrics():
def all(force):
if force:
print('Please wait - collecting metrics from blockchain...')
bounty_data = get('all-bounties')
if not bounty_data.get('bounties', {'force': force}):
bounty_data = get('all-bounties', {'force': force})
if not bounty_data:
print('No bounties found')
return
print_metrics(bounty_data)
Expand All @@ -51,8 +51,8 @@ def all(force):
def first(force):
if force:
print('Please wait - collecting metrics from blockchain...')
bounty_data = get('first-bounties')
if not bounty_data.get('bounties', {'force': force}):
bounty_data = get('first-bounties', {'force': force})
if not bounty_data:
print('No bounties found')
return
print_metrics(bounty_data)
Expand All @@ -65,7 +65,7 @@ def last(force):
if force:
print('Please wait - collecting metrics from blockchain...')
bounty_data = get('last-bounties', {'force': force})
if not bounty_data.get('bounties'):
if not bounty_data:
print('No bounties found')
return
print_metrics(bounty_data)

0 comments on commit 1f4d8ce

Please sign in to comment.