summaryrefslogtreecommitdiffstats
path: root/docker/storperf-reporting/src
diff options
context:
space:
mode:
Diffstat (limited to 'docker/storperf-reporting/src')
-rw-r--r--docker/storperf-reporting/src/app.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/docker/storperf-reporting/src/app.py b/docker/storperf-reporting/src/app.py
index e2d889d..46318ca 100644
--- a/docker/storperf-reporting/src/app.py
+++ b/docker/storperf-reporting/src/app.py
@@ -30,13 +30,13 @@ def get_data(data):
details = temp[0].get('details')
metrics = details.get('metrics')
report_data = details.get('report_data')
- return "single", metrics, report_data
+ return "single", metrics, report_data, temp
else:
return "multi", temp
else:
metrics = temp.get('metrics')
report_data = temp.get('report_data')
- return "single", metrics, report_data
+ return "single", metrics, report_data, temp
@app.route('/reporting/success/')
@@ -65,8 +65,10 @@ def success():
response = get_data(data)
if response[0] == "single":
metrics, report_data = response[1], response[2]
- return render_template('plot_tables.html',
- metrics=metrics, report_data=report_data)
+ results = response[3]
+ return render_template('plot_multi_data.html',
+ metrics=metrics, report_data=report_data,
+ results=results)
else:
return render_template('plot_multi_data.html',
results=response[1])