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