From d7571e3c30aa7b1f312fcf975e7336b9f2912709 Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Wed, 19 May 2021 22:00:30 +0300 Subject: db: phenotypes: Map a table to it's relevant dict mapping --- gn3/db/phenotypes.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gn3/db') diff --git a/gn3/db/phenotypes.py b/gn3/db/phenotypes.py index e97322a..f6ca944 100644 --- a/gn3/db/phenotypes.py +++ b/gn3/db/phenotypes.py @@ -79,6 +79,11 @@ publish_x_ref_mapping = { "comments": "comments", } +TABLEMAP = { + "Phenotype": phenotype_column_mapping, + "PublishXRef": publish_x_ref_mapping, +} + def update_phenotype(conn: Any, data: Phenotype, -- cgit v1.2.3