aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2020-03-03 15:40:34 -0600
committerzsloan2020-03-03 15:40:34 -0600
commit2ed0e4ed2ff000c0378ebfe828d015a662ab52a9 (patch)
treee0ffe1719a86aeac1b47a9cba5c4429467d15e09
parent6709e87e7e607622d466544765686b0a3ec44b30 (diff)
downloadgenenetwork2-2ed0e4ed2ff000c0378ebfe828d015a662ab52a9.tar.gz
Missed one more reference in helper_functions
-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 6980af4e..971dd3cc 100644
--- a/wqflask/utility/helper_functions.py
+++ b/wqflask/utility/helper_functions.py
@@ -4,7 +4,7 @@ from base.trait import GeneralTrait
from base import data_set
from base.species import TheSpecies
-from wqflask import user_manager
+from utility import hmac
from flask import Flask, g
@@ -43,7 +43,7 @@ def get_trait_db_obs(self, trait_db_list):
for trait in trait_db_list:
data, _separator, hmac = trait.rpartition(':')
data = data.strip()
- assert hmac==user_manager.actual_hmac_creation(data), "Data tampering?"
+ assert hmac==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])