aboutsummaryrefslogtreecommitdiff
path: root/gn3/db
diff options
context:
space:
mode:
authorBonfaceKilz2021-06-07 18:53:59 +0300
committerzsloan2021-06-18 22:08:04 +0000
commit712a4f7235cc1167fe1c4e591737a045b9a60ac3 (patch)
treec40c4d2d9abb21b06446933f8e93f6400a757100 /gn3/db
parentea90f7d8276ec9df583b94d7d00c128e63f147ef (diff)
downloadgenenetwork3-712a4f7235cc1167fe1c4e591737a045b9a60ac3.tar.gz
gn3: db: Add "id_" property to metadata_audit class and mapping
Diffstat (limited to 'gn3/db')
-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",