From b8e7799332041664c9e68d6239f1cb7855dcdabc Mon Sep 17 00:00:00 2001 From: spwoodcock Date: Tue, 20 Aug 2024 23:18:36 +0100 Subject: [PATCH] fix(backend): pyxform usage only allowing xls file extension --- 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 8d92491222..669bd2ff90 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)