From 818a6b999e6548f41d0337319edfda4b86cd4101 Mon Sep 17 00:00:00 2001 From: StevenHosper Date: Fri, 10 Jan 2025 13:45:22 +0100 Subject: [PATCH] remove underPrivilige from datamodel --- CHANGES.md | 1 + api/bro_upload/upload_datamodels.py | 11 ----------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index a2b1685..e4b421a 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -4,6 +4,7 @@ - Bugfix: GLD-Closure template +- Enhancement: Do not require underPrivilige for GMW ## 0.77 (2025-01-02) diff --git a/api/bro_upload/upload_datamodels.py b/api/bro_upload/upload_datamodels.py index 047d644..f369b6b 100644 --- a/api/bro_upload/upload_datamodels.py +++ b/api/bro_upload/upload_datamodels.py @@ -12,20 +12,9 @@ class UploadTaskMetadata(BaseModel): deliveryAccountableParty: str | None = None qualityRegime: str broId: str | None = None - underPrivilege: str | None = None correctionReason: str | None = None dateToBeCorrected: str | date | None = None - @root_validator(pre=True) - def format_underPrivilege(cls, values): - # Check and set `underPrivilege` - if values.get("qualityRegime") == "IMBRO/A" and not values.get( - "underPrivilege" - ): - values["underPrivilege"] = "ja" - - return values - class GARBulkUploadMetadata(BaseModel): requestReference: str