diff options
author | Frederick Muriuki Muriithi | 2023-07-18 13:34:37 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-07-18 13:34:37 +0300 |
commit | 9b2f5b8bf533a8ed360752cf9199f83bdd4454a3 (patch) | |
tree | 2a6391230510f3be70b5da822018b02fa407cab3 /gn3 | |
parent | 06f2b2f7230f8d6dc9ddc36646ec1d9c8d47f35c (diff) | |
download | genenetwork3-9b2f5b8bf533a8ed360752cf9199f83bdd4454a3.tar.gz |
Bug: Change from `_id` to `id_` to avoid downstream breakage.
The downstream code expects `id_` not `_id`.
Diffstat (limited to 'gn3')
-rw-r--r-- | gn3/db/phenotypes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/db/phenotypes.py b/gn3/db/phenotypes.py index 4b6a121..228459f 100644 --- a/gn3/db/phenotypes.py +++ b/gn3/db/phenotypes.py @@ -166,7 +166,7 @@ def fetch_trait(conn: DBConnection, dataset_id: int, trait_name: str) -> dict: """Fetch phenotype 'traits' by `dataset_id` and `trait_name`.""" query = ( "SELECT " - "pxr.Id AS _id, pxr.Id as trait_name, pxr.PhenotypeId AS phenotype_id, " + "pxr.Id AS id_, pxr.Id as trait_name, pxr.PhenotypeId AS phenotype_id, " "pxr.PublicationId AS publication_id, pxr.DataId AS data_id, " "pxr.mean, pxr.locus, pxr.LRS as lrs, pxr.additive, " "pxr.Sequence as sequence, pxr.comments " |