From 4f4baf953a29649b2a77a4120f7a866012fde586 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 16 May 2022 12:55:56 +0300 Subject: Check for queued results explicitly Rather than checking the status field, check for the queued field instead and only display the 'in progress' indicator when the computation has been queued for later. --- wqflask/wqflask/partial_correlations_views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wqflask') diff --git a/wqflask/wqflask/partial_correlations_views.py b/wqflask/wqflask/partial_correlations_views.py index 0d086567..cee91233 100644 --- a/wqflask/wqflask/partial_correlations_views.py +++ b/wqflask/wqflask/partial_correlations_views.py @@ -237,7 +237,7 @@ def __format_number(num): return f"{num:.5f}" def handle_200_response(response): - if response["status"] == "queued": + if response.get("queued", False): return redirect( url_for( "poll_partial_correlation_results", -- cgit v1.2.3