Skip to content

Commit

Permalink
fix(backend): set new_geom_type default to Polygon as temp fix for #2164
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Feb 24, 2025
1 parent 34f7982 commit 400ed11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/app/central/central_crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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(
Expand Down

0 comments on commit 400ed11

Please sign in to comment.