aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-05-16 12:55:56 +0300
committerFrederick Muriuki Muriithi2022-05-16 12:55:56 +0300
commit4f4baf953a29649b2a77a4120f7a866012fde586 (patch)
tree921ad4c835419a9071ad118e495b4ae466c01b82
parent3e6baf7ad38770950d13f3a0929337a318fb0414 (diff)
downloadgenenetwork2-4f4baf953a29649b2a77a4120f7a866012fde586.tar.gz
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.
-rw-r--r--wqflask/wqflask/partial_correlations_views.py2
1 files changed, 1 insertions, 1 deletions
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",