From 61cf4be04f1382ead04e9c1f7d5fffdfc395d6a4 Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Mon, 7 Jun 2021 18:53:59 +0300 Subject: gn3: db: Add "id_" property to metadata_audit class and mapping --- gn3/db/metadata_audit.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gn3/db') diff --git a/gn3/db/metadata_audit.py b/gn3/db/metadata_audit.py index e73e988..8765738 100644 --- a/gn3/db/metadata_audit.py +++ b/gn3/db/metadata_audit.py @@ -10,6 +10,7 @@ from typing import Optional @dataclass(frozen=True) class MetadataAudit: """Data Type that represents a Phenotype""" + id_: Optional[int] = None dataset_id: Optional[int] = None editor: Optional[str] = None json_data: Optional[str] = None @@ -19,6 +20,7 @@ class MetadataAudit: # Mapping from the MetadataAudit dataclass to the actual column names in the # database metadata_audit_mapping = { + "id_": "id", "dataset_id": "dataset_id", "editor": "editor", "json_data": "json_data", -- cgit v1.2.3