diff options
author | saksham115 <saksham.agrawal@research.iiit.ac.in> | 2017-09-11 16:15:57 +0530 |
---|---|---|
committer | Saksham Agrawal <saksham.agrawal@research.iiit.ac.in> | 2017-09-11 15:18:42 +0000 |
commit | 839c7bfe8fcf9f0bf78916cbcfa47d94b1b6ed2c (patch) | |
tree | 7a4c78c191581aa75e1d29af319538fb881be8bc /docker | |
parent | 9e5fb1469015f9f040846e709d7f36c51f68382d (diff) |
Creating intermediate page for the single-data-json files
JIRA: STORPERF-163
Change-Id: I401073eed70b298ae0c2fa60b2548e4a38d96fbb
Signed-off-by: saksham115 <saksham.agrawal@research.iiit.ac.in>
Diffstat (limited to 'docker')
-rw-r--r-- | docker/storperf-reporting/src/app.py | 10 |
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]) |