aboutsummaryrefslogtreecommitdiff
path: root/gn2/base
diff options
context:
space:
mode:
authorJohn Nduli2024-11-06 17:01:28 +0300
committerMunyoki Kilyungi2024-11-07 09:50:33 +0300
commit8822a5ce161461a4d15326af4ef90bc574b72048 (patch)
tree9d5f9182d759e93242fec0bdf36e2a32fa8088af /gn2/base
parentbb98553aea6d217f791f886c1bd2f2570a7477ef (diff)
downloadgenenetwork2-testing.tar.gz
fix: failing tests due to changes in geno_db_existsHEADtesting
Diffstat (limited to 'gn2/base')
-rw-r--r--gn2/base/trait.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/gn2/base/trait.py b/gn2/base/trait.py
index 24288ba1..8375c682 100644
--- a/gn2/base/trait.py
+++ b/gn2/base/trait.py
@@ -27,15 +27,10 @@ def create_trait(**kw):
if bool(kw.get('dataset')):
dataset = kw.get('dataset')
-
-
else:
if kw.get('dataset_name') != "Temp":
-
-
dataset = create_dataset(kw.get('dataset_name'))
else:
-
dataset = create_dataset(
dataset_name="Temp",
dataset_type="Temp",
@@ -49,9 +44,8 @@ def create_trait(**kw):
permissions = check_resource_availability(
dataset, g.user_session.user_id)
-
if permissions['data'] != "no-access":
-
+
the_trait = GeneralTrait(**dict(kw,dataset=dataset))
if the_trait.dataset.type != "Temp":
the_trait = retrieve_trait_info(
@@ -641,4 +635,4 @@ def fetch_symbols(trait_db_list):
'db_name': trait_db.split(":")[1]})
symbol_list.append(cursor.fetchone()[0])
- return "+".join(symbol_list) \ No newline at end of file
+ return "+".join(symbol_list)