aboutsummaryrefslogtreecommitdiff
path: root/wqflask/utility/helper_functions.py
diff options
context:
space:
mode:
authorzsloan2021-04-19 17:11:41 +0000
committerzsloan2021-04-19 17:11:41 +0000
commit68ee0a995fceaf6aefdd3c8f780e46a83b51a0e8 (patch)
treecbf4f9cbc0ffa7748f03d47b138ca6625a778693 /wqflask/utility/helper_functions.py
parent789dd88a0b9a6a8cbe0413c47212c89c1681765c (diff)
downloadgenenetwork2-68ee0a995fceaf6aefdd3c8f780e46a83b51a0e8.tar.gz
Specify only getting the first two items after splitting the trait/dataset input string
Diffstat (limited to 'wqflask/utility/helper_functions.py')
-rw-r--r--wqflask/utility/helper_functions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/utility/helper_functions.py b/wqflask/utility/helper_functions.py
index 7eb7f013..46eeb35d 100644
--- a/wqflask/utility/helper_functions.py
+++ b/wqflask/utility/helper_functions.py
@@ -40,7 +40,7 @@ def get_trait_db_obs(self, trait_db_list):
data, _separator, hmac_string = trait.rpartition(':')
data = data.strip()
assert hmac_string==hmac.hmac_creation(data), "Data tampering?"
- trait_name, dataset_name = data.split(":")
+ trait_name, dataset_name = data.split(":")[:2]
if dataset_name == "Temp":
dataset_ob = data_set.create_dataset(dataset_name=dataset_name, dataset_type="Temp", group_name=trait_name.split("_")[2])
else: