Skip to content
Snippets Groups Projects
Commit ad972fff authored by Nico Vermaas's avatar Nico Vermaas
Browse files

new layout without input_content and output_content

parent 3b91427e
No related branches found
No related tags found
1 merge request!268SDC 779 add summary info
Pipeline #40923 passed
...@@ -709,11 +709,17 @@ def construct_summary(task): ...@@ -709,11 +709,17 @@ def construct_summary(task):
# find the plots in the quality json structure # find the plots in the quality json structure
summary = task.quality_json["summary"] summary = task.quality_json["summary"]
#loaded = json.loads(summary)
total_size_input = 0
total_size_output = 0
for key in summary: for key in summary:
record = summary[key] record = summary[key]
line = ''
total_size_input += record['input_size']
total_size_output+= record['output_size']
line = ''
line += '<tr style="background-color:#7EB1C4"><td colspan="3"><b>' + key + '</b></td></tr>' line += '<tr style="background-color:#7EB1C4"><td colspan="3"><b>' + key + '</b></td></tr>'
line += '<th></th><th>Name</th><th>Size</th>' line += '<th></th><th>Name</th><th>Size</th>'
...@@ -775,4 +781,13 @@ def construct_summary(task): ...@@ -775,4 +781,13 @@ def construct_summary(task):
results += line results += line
try:
results += '<th>Totals</th>'
results += '<tr><td colspan="1"><b>Input size</b></td><td>' + str(total_size_input) + '</td></tr>'
results += '<tr><td colspan="1"><b>Outtput size</b><td>' + str(total_size_output) + '</td></tr>'
results += '<tr><td colspan="1"><b>Ratioatio</b></td><td>' + str(total_size_output/total_size_output) + '</td></tr>'
except:
pass
return results return results
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment