diff --git a/src/backend/app/central/central_crud.py b/src/backend/app/central/central_crud.py index b3041deb89..15b08c0b88 100644 --- a/src/backend/app/central/central_crud.py +++ b/src/backend/app/central/central_crud.py @@ -29,7 +29,7 @@ from defusedxml import ElementTree from fastapi import HTTPException from loguru import logger as log -from osm_fieldwork.CSVDump import CSVDump +from osm_fieldwork.csvdump import CSVDump from osm_fieldwork.OdkCentral import OdkAppUser, OdkForm, OdkProject from pyxform.builder import create_survey_element_from_dict from pyxform.xls2json import parse_file_to_json @@ -354,7 +354,7 @@ async def update_project_xform( xform_obj.createForm( odk_id, updated_xform_data, - xform_id, + form_name=xform_id, ) # The draft form must be published after upload xform_obj.publishForm(odk_id, xform_id) @@ -544,7 +544,7 @@ async def modify_xform_xml( # Hardcode the form_category value for the start instructions form_category_update = root.find( - ".//xforms:bind[@nodeset='/data/all/form_category']", namespaces + ".//xforms:bind[@nodeset='/data/essential/form_category']", namespaces ) if form_category_update is not None: if category.endswith("s"): diff --git a/src/backend/pdm.lock b/src/backend/pdm.lock index 8b9ccf8c0c..067539a548 100644 --- a/src/backend/pdm.lock +++ b/src/backend/pdm.lock @@ -5,7 +5,7 @@ groups = ["default", "debug", "dev", "docs", "test", "monitoring"] strategy = ["cross_platform"] lock_version = "4.4.1" -content_hash = "sha256:3dfb8a9f5d6fb72d99be33d0576d5649f08da14be9108063f0dc1d1352e6bf51" +content_hash = "sha256:32f723d5850833fdc017e3ae23710d4abe8b26e1a4560500ce7b674a57527b5d" [[package]] name = "aiohttp" @@ -1662,7 +1662,7 @@ files = [ [[package]] name = "osm-fieldwork" -version = "0.11.2" +version = "0.12.1" requires_python = ">=3.10" summary = "Processing field data from ODK to OpenStreetMap format." dependencies = [ @@ -1687,8 +1687,8 @@ dependencies = [ "xmltodict>=0.13.0", ] files = [ - {file = "osm-fieldwork-0.11.2.tar.gz", hash = "sha256:472edd6873a173d526b636a01abb39cb558609d9df14da19cfe82413945954db"}, - {file = "osm_fieldwork-0.11.2-py3-none-any.whl", hash = "sha256:be919fc058811253c7ee9276822d9160e2dff170d777bbf3e95d7fc40ec26def"}, + {file = "osm-fieldwork-0.12.1.tar.gz", hash = "sha256:fa67509e2c61ac5cd03bf210cc9884e83487e5f329520fc1a68c50cf8785401c"}, + {file = "osm_fieldwork-0.12.1-py3-none-any.whl", hash = "sha256:5b70bca56a45508deee4d8b6b0210c3c2d810f9e75eb2a11e10a44a42e629ac6"}, ] [[package]] diff --git a/src/backend/pyproject.toml b/src/backend/pyproject.toml index 675141d3c5..c9abf6e23d 100644 --- a/src/backend/pyproject.toml +++ b/src/backend/pyproject.toml @@ -46,7 +46,7 @@ dependencies = [ "cryptography>=42.0.1", "defusedxml>=0.7.1", "osm-login-python==1.0.3", - "osm-fieldwork==0.11.2", + "osm-fieldwork==0.12.1", "osm-rawdata==0.3.0", "fmtm-splitter==1.2.2", ]