aboutsummaryrefslogtreecommitdiff
path: root/gn3
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-07-18 13:34:37 +0300
committerFrederick Muriuki Muriithi2023-07-18 13:34:37 +0300
commit9b2f5b8bf533a8ed360752cf9199f83bdd4454a3 (patch)
tree2a6391230510f3be70b5da822018b02fa407cab3 /gn3
parent06f2b2f7230f8d6dc9ddc36646ec1d9c8d47f35c (diff)
downloadgenenetwork3-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.py2
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 "