aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2021-04-28 19:45:37 +0000
committerzsloan2021-04-28 19:45:37 +0000
commit65a2c8c1f455c5fad48fbac1a3e75310d49ed844 (patch)
tree22572c39e6b274f8cc775f3cfb32570dc10bc3e3 /wqflask
parent6e8afe5a6871a680778bfaed6b79c934b33d0307 (diff)
downloadgenenetwork2-65a2c8c1f455c5fad48fbac1a3e75310d49ed844.tar.gz
Added something to jsonable in trait.py to account for temp traits (this is necessary for them to show up correctly when selecting traits from collections in pop-up windows, like when selecting cofactors for mapping)
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/base/trait.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/wqflask/base/trait.py b/wqflask/base/trait.py
index df96d46e..b4b4452a 100644
--- a/wqflask/base/trait.py
+++ b/wqflask/base/trait.py
@@ -337,6 +337,10 @@ def jsonable(trait):
dataset_name=dataset.shortname,
location=trait.location_repr
)
+ elif dataset.name == "Temp":
+ return dict(name=trait.name,
+ dataset="Temp",
+ dataset_name="Temp")
else:
return dict()