From 9b2f5b8bf533a8ed360752cf9199f83bdd4454a3 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 18 Jul 2023 13:34:37 +0300 Subject: Bug: Change from `_id` to `id_` to avoid downstream breakage. The downstream code expects `id_` not `_id`. --- gn3/db/phenotypes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 " -- cgit 1.4.1