From be6ae152a19e91df27dfe3830040e5a7774e4c9f Mon Sep 17 00:00:00 2001 From: zsloan Date: Sun, 25 Sep 2022 19:48:49 +0000 Subject: Fix issue where the display name was used in the hmac for phenotype traits --- wqflask/base/trait.py | 4 ++-- 1 file 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, -- cgit v1.2.3