about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBonfaceKilz2021-06-07 18:53:59 +0300
committerBonfaceKilz2021-06-07 19:58:44 +0300
commit61cf4be04f1382ead04e9c1f7d5fffdfc395d6a4 (patch)
treee84c2b38cf4d145b416637649ba8e6933f10d7d9
parent8668dabeb44c72c54f2c91a9b0f6814042df4d85 (diff)
downloadgenenetwork3-61cf4be04f1382ead04e9c1f7d5fffdfc395d6a4.tar.gz
gn3: db: Add "id_" property to metadata_audit class and mapping
-rw-r--r--gn3/db/metadata_audit.py2
1 files changed, 2 insertions, 0 deletions
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",