diff options
author | Muriithi Frederick Muriuki | 2021-08-17 08:49:14 +0300 |
---|---|---|
committer | Arun Isaac | 2021-08-18 08:47:34 +0000 |
commit | 45bc6cbbf1878c9271d410f37e24ad44f5100c2f (patch) | |
tree | 6832365cbfae735e873b2d7374d3d0f92e5749e7 /gn3/db | |
parent | fc233942e9118a341001f3357a5d2b1c65187736 (diff) | |
download | genenetwork3-45bc6cbbf1878c9271d410f37e24ad44f5100c2f.tar.gz |
Provide top-level `riset` key-value pair
Issue:
https://github.com/genenetwork/gn-gemtext-threads/blob/main/topics/gn1-migration-to-gn2/clustering.gmi
* Provide the expected, top-level `riset` key-value pair and eliminate the
redundant key-value pair.
Diffstat (limited to 'gn3/db')
-rw-r--r-- | gn3/db/traits.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gn3/db/traits.py b/gn3/db/traits.py index 6ea24be..1031e44 100644 --- a/gn3/db/traits.py +++ b/gn3/db/traits.py @@ -418,9 +418,9 @@ def retrieve_trait_info( conn) if trait_info["haveinfo"]: return { - **trait_post_processing_functions_table[trait_dataset_type](trait_info), - "db": {**trait["db"], **trait_dataset}, - "riset": trait_dataset["riset"] + **trait_post_processing_functions_table[trait_dataset_type]( + {**trait_info, "riset": trait_dataset["riset"]}), + "db": {**trait["db"], **trait_dataset} } return trait_info |