From 400ed112dc8406fe269b64506079ad85dd170dde Mon Sep 17 00:00:00 2001 From: spwoodcock Date: Mon, 24 Feb 2025 01:47:40 +0000 Subject: [PATCH] fix(backend): set new_geom_type default to Polygon as temp fix for #2164 --- src/backend/app/central/central_crud.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/app/central/central_crud.py b/src/backend/app/central/central_crud.py index 2d81005ebd..cfe0ad9a2c 100644 --- a/src/backend/app/central/central_crud.py +++ b/src/backend/app/central/central_crud.py @@ -277,7 +277,7 @@ async def append_fields_to_user_xlsform( form_category: str = "buildings", additional_entities: list[str] = None, existing_id: str = None, - new_geom_type: DbGeomType = DbGeomType.POINT, + new_geom_type: DbGeomType = DbGeomType.POLYGON, ) -> tuple[str, BytesIO]: """Helper to return the intermediate XLSForm prior to convert.""" log.debug("Appending mandatory FMTM fields to XLSForm") @@ -295,7 +295,7 @@ async def validate_and_update_user_xlsform( form_category: str = "buildings", additional_entities: list[str] = None, existing_id: str = None, - new_geom_type: DbGeomType = DbGeomType.POINT, + new_geom_type: DbGeomType = DbGeomType.POLYGON, ) -> BytesIO: """Wrapper to append mandatory fields and validate user uploaded XLSForm.""" xform_id, updated_file_bytes = await append_fields_to_user_xlsform(