aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2021-12-14 18:20:48 +0000
committerzsloan2021-12-14 12:22:51 -0600
commit92e555531e53630ce11e34a0b67bb111647b47c1 (patch)
tree5c251f905d4477864354083c11d0060f1ca03995 /wqflask
parent522214bd2edf83e68a94ed5fd0d891548cacf34f (diff)
downloadgenenetwork2-92e555531e53630ce11e34a0b67bb111647b47c1.tar.gz
Includes dataset name when creating SimpleNamespace dataset_ob, since it's needed during authentication
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/gsearch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/gsearch.py b/wqflask/wqflask/gsearch.py
index 31f3305c..53a124d0 100644
--- a/wqflask/wqflask/gsearch.py
+++ b/wqflask/wqflask/gsearch.py
@@ -119,7 +119,7 @@ class GSearch:
this_trait['dataset_id'] = line[15]
dataset_ob = SimpleNamespace(
- id=this_trait["dataset_id"], type="ProbeSet", species=this_trait["species"])
+ id=this_trait["dataset_id"], type="ProbeSet", name=this_trait["dataset"], species=this_trait["species"])
if dataset_ob.id not in dataset_to_permissions:
permissions = check_resource_availability(dataset_ob)
dataset_to_permissions[dataset_ob.id] = permissions