From 24fa8700fdcb1338a8e05283b63bb282a8c96a8b 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(+) 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