aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2020-03-10 14:35:16 -0500
committerzsloan2020-03-10 14:35:16 -0500
commitb3240e39af690c240011f7c74b462fc28c79b528 (patch)
treefe01055484d3505d335b33bbe05c1cb6e75ca3fe
parent0d78150d2e61628bec3646efff0a2c5bade7a308 (diff)
downloadgenenetwork2-b3240e39af690c240011f7c74b462fc28c79b528.tar.gz
Fixed issue that caused some problems when verifying hmac
-rw-r--r--wqflask/utility/helper_functions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/utility/helper_functions.py b/wqflask/utility/helper_functions.py
index 971dd3cc..e7c04fef 100644
--- a/wqflask/utility/helper_functions.py
+++ b/wqflask/utility/helper_functions.py
@@ -41,9 +41,9 @@ def get_trait_db_obs(self, trait_db_list):
self.trait_list = []
for trait in trait_db_list:
- data, _separator, hmac = trait.rpartition(':')
+ data, _separator, hmac_string = trait.rpartition(':')
data = data.strip()
- assert hmac==hmac.hmac_creation(data), "Data tampering?"
+ assert hmac_string==hmac.hmac_creation(data), "Data tampering?"
trait_name, dataset_name = data.split(":")
if dataset_name == "Temp":
dataset_ob = data_set.create_dataset(dataset_name=dataset_name, dataset_type="Temp", group_name=trait_name.split("_")[2])