diff options
author | zsloan | 2021-04-19 17:11:41 +0000 |
---|---|---|
committer | zsloan | 2021-04-19 17:11:41 +0000 |
commit | 68ee0a995fceaf6aefdd3c8f780e46a83b51a0e8 (patch) | |
tree | cbf4f9cbc0ffa7748f03d47b138ca6625a778693 /wqflask/utility/helper_functions.py | |
parent | 789dd88a0b9a6a8cbe0413c47212c89c1681765c (diff) | |
download | genenetwork2-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.py | 2 |
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: |