From 839c7bfe8fcf9f0bf78916cbcfa47d94b1b6ed2c Mon Sep 17 00:00:00 2001 From: saksham115 Date: Mon, 11 Sep 2017 16:15:57 +0530 Subject: Creating intermediate page for the single-data-json files JIRA: STORPERF-163 Change-Id: I401073eed70b298ae0c2fa60b2548e4a38d96fbb Signed-off-by: saksham115 --- docker/storperf-reporting/src/app.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'docker') 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]) -- cgit 1.2.3-korg