From 1f75d25bd6a933200a46297fcc30dee9230c4483 Mon Sep 17 00:00:00 2001 From: Dinos Kousidis Date: Wed, 1 Aug 2018 14:27:55 +0200 Subject: [PATCH] cli: fix getting total number of jobs Signed-off-by: Dinos Kousidis --- reana_client/cli/workflow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reana_client/cli/workflow.py b/reana_client/cli/workflow.py index 7a75fe7c..b803038d 100644 --- a/reana_client/cli/workflow.py +++ b/reana_client/cli/workflow.py @@ -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']