Skip to content

Commit

Permalink
Merge pull request #80 from skalenetwork/bug/fix-metrics-commands
Browse files Browse the repository at this point in the history
SKALE-1610 Fix metrics commands
  • Loading branch information
dmytrotkk authored Nov 19, 2019
2 parents 2b3715d + 1f4d8ce commit 12ea676
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 12ea676

Please sign in to comment.