diff --git a/backend_py/primary/primary/routers/well/converters.py b/backend_py/primary/primary/routers/well/converters.py index baa9fbda1..0fc4f4606 100644 --- a/backend_py/primary/primary/routers/well/converters.py +++ b/backend_py/primary/primary/routers/well/converters.py @@ -62,7 +62,6 @@ def convert_wellbore_header_to_schema( drilled_wellbore_header.wellbore_purpose if drilled_wellbore_header.wellbore_purpose else "" ), # TODO: Handle None wellboreStatus=drilled_wellbore_header.wellbore_status if drilled_wellbore_header.wellbore_status else "", - slotIdentifier=drilled_wellbore_header.slot_identifier if drilled_wellbore_header.slot_identifier else "", ) diff --git a/backend_py/primary/primary/routers/well/schemas.py b/backend_py/primary/primary/routers/well/schemas.py index 8fb10c98f..5e47a71f8 100644 --- a/backend_py/primary/primary/routers/well/schemas.py +++ b/backend_py/primary/primary/routers/well/schemas.py @@ -34,7 +34,6 @@ class WellboreHeader(BaseModel): depthReferenceElevation: float wellborePurpose: str wellboreStatus: str - slotIdentifier: str class WellboreTrajectory(BaseModel): diff --git a/backend_py/primary/primary/services/smda_access/smda_access.py b/backend_py/primary/primary/services/smda_access/smda_access.py index d9e75cd30..221c44512 100644 --- a/backend_py/primary/primary/services/smda_access/smda_access.py +++ b/backend_py/primary/primary/services/smda_access/smda_access.py @@ -75,7 +75,7 @@ async def get_wellbore_headers(self) -> List[WellboreHeader]: if not survey_header_results: raise NoDataError(f"No wellbore headers found for {self._field_identifier=}.", Service.SMDA) - projection = ["unique_wellbore_identifier", "wellbore_purpose", "wellbore_status", "slot_identifier"] + projection = ["unique_wellbore_identifier", "wellbore_purpose", "wellbore_status"] params = { "_projection": ",".join(projection), "_sort": "unique_wellbore_identifier", @@ -89,7 +89,6 @@ async def get_wellbore_headers(self) -> List[WellboreHeader]: if survey_header["unique_wellbore_identifier"] == wellbore_header["unique_wellbore_identifier"]: survey_header["wellbore_purpose"] = wellbore_header.get("wellbore_purpose") survey_header["wellbore_status"] = wellbore_header.get("wellbore_status") - survey_header["slot_identifier"] = wellbore_header.get("slot_identifier") break return [WellboreHeader(**result) for result in survey_header_results] diff --git a/backend_py/primary/primary/services/smda_access/types.py b/backend_py/primary/primary/services/smda_access/types.py index eff556881..b9bdefa45 100644 --- a/backend_py/primary/primary/services/smda_access/types.py +++ b/backend_py/primary/primary/services/smda_access/types.py @@ -44,7 +44,6 @@ class WellboreHeader(BaseModel): depth_reference_elevation: float wellbore_purpose: str | None wellbore_status: str | None - slot_identifier: str | None class StratigraphicUnit(BaseModel):