From 0b723720f7b1b9802b2f5453b747c7e48b693817 Mon Sep 17 00:00:00 2001 From: Alexander Kabui Date: Mon, 10 May 2021 08:34:10 +0300 Subject: use new correlation code in endpoint --- wqflask/wqflask/views.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py index 19779651..a470a0c9 100644 --- a/wqflask/wqflask/views.py +++ b/wqflask/wqflask/views.py @@ -881,14 +881,14 @@ def network_graph_page(): def corr_compute_page(): logger.info("In corr_compute, request.form is:", pf(request.form)) logger.info(request.url) - template_vars = show_corr_results.CorrelationResults(request.form) - return render_template("correlation_page.html", **template_vars.__dict__) + # template_vars = show_corr_results.CorrelationResults(request.form) + # return render_template("correlation_page.html", **template_vars.__dict__) # to test the new correlation api uncomment these lines - # correlation_results = compute_correlation(request.form) + correlation_results = compute_correlation(request.form) # print(">>>>Time taken by this endpoint",time.time()-initial_time) - # return render_template("test_correlation_page.html",correlation_results=correlation_results) + return render_template("test_correlation_page.html",correlation_results=correlation_results) @app.route("/corr_matrix", methods=('POST',)) def corr_matrix_page(): -- cgit v1.2.3