From 5b58a8ee264bbc098cf7dd632bd8879eee65347f Mon Sep 17 00:00:00 2001 From: Sam <78538841+spwoodcock@users.noreply.github.com> Date: Wed, 21 Aug 2024 00:21:28 +0200 Subject: [PATCH] fix(backend): pyxform usage only allowing xls file extension (#1758) --- src/backend/app/central/central_crud.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/app/central/central_crud.py b/src/backend/app/central/central_crud.py index 8d9249122..669bd2ff9 100644 --- a/src/backend/app/central/central_crud.py +++ b/src/backend/app/central/central_crud.py @@ -389,7 +389,7 @@ async def read_and_test_xform( try: log.debug("Converting xlsform -> xform") json_data = parse_file_to_json( - path="/dummy/path/with/file/ext.xls", + path=f"/dummy/path/with/file{file_ext}", file_object=input_data, ) generated_xform = create_survey_element_from_dict(json_data)