From a2b837801d479ed2fb06ca33c07de9c271532c46 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 19 Oct 2022 05:44:55 +0300 Subject: Remove `/test_corr_compute' endpoint * Remove the `/test_corr_compute` endpoint that has been superceded by the `/corr_compute` endpoint. --- wqflask/wqflask/views.py | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'wqflask') diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py index 5465676c..0d8e5e64 100644 --- a/wqflask/wqflask/views.py +++ b/wqflask/wqflask/views.py @@ -842,25 +842,6 @@ def corr_compute_page(): return render_template("correlation_page.html", **correlation_results) -@app.route("/test_corr_compute", methods=["POST"]) -def test_corr_compute_page(): - - start_vars = request.form - - try: - correlation_results = compute_correlation_rust( - start_vars, - start_vars["corr_type"], - start_vars['corr_sample_method'], - int(start_vars.get("corr_return_results", 500)), - True) - except WrongCorrelationType as exc: - return __handle_correlation_error__(exc) - - correlation_results = set_template_vars(request.form, correlation_results) - return render_template("correlation_page.html", **correlation_results) - - @app.route("/corr_matrix", methods=('POST',)) def corr_matrix_page(): start_vars = request.form -- cgit v1.2.3