Skip to content

Commit

Permalink
cli: fix getting total number of jobs
Browse files Browse the repository at this point in the history
Signed-off-by: Dinos Kousidis <dinos.kousidis@cern.ch>
  • Loading branch information
dinosk committed Aug 1, 2018
1 parent 96d6c26 commit 1f75d25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reana_client/cli/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ def get_data_from_row(row, data, headers):
succeeded_jobs = succeeded_jobs.get('total')
else:
succeeded_jobs = 0
if row['progress']['total'] > 0:
if row['progress']['total'].get('total') or 0 > 0:
if 'progress' not in headers:
headers += ['progress']

Expand Down

0 comments on commit 1f75d25

Please sign in to comment.