diff options
author | John Nduli | 2024-11-06 17:01:28 +0300 |
---|---|---|
committer | Munyoki Kilyungi | 2024-11-07 09:50:33 +0300 |
commit | 8822a5ce161461a4d15326af4ef90bc574b72048 (patch) | |
tree | 9d5f9182d759e93242fec0bdf36e2a32fa8088af /gn2/base | |
parent | bb98553aea6d217f791f886c1bd2f2570a7477ef (diff) | |
download | genenetwork2-testing.tar.gz |
Diffstat (limited to 'gn2/base')
-rw-r--r-- | gn2/base/trait.py | 10 |
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) |