aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base
diff options
context:
space:
mode:
authorzsloan2022-09-25 19:48:49 +0000
committerzsloan2022-09-25 19:48:49 +0000
commitbe6ae152a19e91df27dfe3830040e5a7774e4c9f (patch)
tree494e55b46ddaaf20b9b8930b97ecf7a9c888b348 /wqflask/base
parentd1a7719cd7d1d770956b54edf10b628d4674e534 (diff)
downloadgenenetwork2-be6ae152a19e91df27dfe3830040e5a7774e4c9f.tar.gz
Fix issue where the display name was used in the hmac for phenotype traits
Diffstat (limited to 'wqflask/base')
-rw-r--r--wqflask/base/trait.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/base/trait.py b/wqflask/base/trait.py
index 2bf1babc..888b9a9c 100644
--- a/wqflask/base/trait.py
+++ b/wqflask/base/trait.py
@@ -319,7 +319,7 @@ def jsonable(trait, dataset=None):
if trait.pubmed_id:
return dict(name=trait.name,
display_name=trait.display_name,
- hmac=hmac.data_hmac('{}:{}'.format(trait.display_name, dataset.name)),
+ hmac=hmac.data_hmac('{}:{}'.format(trait.name, dataset.name)),
view=str(trait.view),
symbol=trait_symbol,
dataset=dataset.name,
@@ -338,7 +338,7 @@ def jsonable(trait, dataset=None):
else:
return dict(name=trait.name,
display_name=trait.display_name,
- hmac=hmac.data_hmac('{}:{}'.format(trait.display_name, dataset.name)),
+ hmac=hmac.data_hmac('{}:{}'.format(trait.name, dataset.name)),
view=str(trait.view),
symbol=trait_symbol,
dataset=dataset.name,