From 712a4f7235cc1167fe1c4e591737a045b9a60ac3 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') 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