aboutsummaryrefslogtreecommitdiff
path: root/gn3
diff options
context:
space:
mode:
authorMuriithi Frederick Muriuki2021-08-17 08:49:14 +0300
committerMuriithi Frederick Muriuki2021-08-17 08:49:14 +0300
commita2f6406909951a80dc4ead809a09e8de2c15200d (patch)
tree6832365cbfae735e873b2d7374d3d0f92e5749e7 /gn3
parent1a9d28e6db2140cc7b3491c6dbcf4fc8cd8c09b6 (diff)
downloadgenenetwork3-a2f6406909951a80dc4ead809a09e8de2c15200d.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')
-rw-r--r--gn3/db/traits.py6
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