From 60b048c542bc90f33ee922f6f5cef94c394ccd69 Mon Sep 17 00:00:00 2001 From: dcore94 Date: Thu, 14 Oct 2021 12:56:17 +0200 Subject: [PATCH] styled email report --- templates/da_cache_to_shub.json.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/da_cache_to_shub.json.j2 b/templates/da_cache_to_shub.json.j2 index e0fe135..c6043a5 100644 --- a/templates/da_cache_to_shub.json.j2 +++ b/templates/da_cache_to_shub.json.j2 @@ -218,7 +218,7 @@ "inputParameters": { "input" : "${workflow.input.descriptor}", "output" : "${join_parallel_downloads.output}", - "scriptExpression": "var k,report='',keys=[];for(var k in $.output) keys.push(k);keys.sort();for(k in keys){var index=keys[k].split('_')[1];report+='';var o=$.output[keys[k]];o.endpoint1.error||o.endpoint2.error?report+='':report+='',report+=''}report+='
DownloadOutcome
'+(Number(index)+1)+''+(o.endpoint1.error||'')+(o.endpoint2.error||'')+'OK
';return { report : report}" + "scriptExpression": "var k,report='',keys=[];for(var k in $.output) keys.push(k);keys.sort();for(k in keys){var index=keys[k].split('_')[1];report+='';var o=$.output[keys[k]];o.endpoint1.error||o.endpoint2.error?report+='':report+='',report+=''}report+='
DownloadOutcome
'+(Number(index)+1)+''+(o.endpoint1.error||'')+(o.endpoint2.error||'')+'OK
';return { report : report}" } }, {