From fb29a68886c9349886cb10caa77d4acd671fd715 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 29 Aug 2024 09:14:18 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/backend/app/projects/project_routes.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/backend/app/projects/project_routes.py b/src/backend/app/projects/project_routes.py index 3d60e79d8..9e068fc2e 100644 --- a/src/backend/app/projects/project_routes.py +++ b/src/backend/app/projects/project_routes.py @@ -40,8 +40,8 @@ from loguru import logger as log from osm_fieldwork.data_models import data_models_path from osm_fieldwork.make_data_extract import getChoices -from osm_fieldwork.xlsforms import xlsforms_path from osm_fieldwork.update_form import update_xls_form +from osm_fieldwork.xlsforms import xlsforms_path from sqlalchemy.orm import Session from sqlalchemy.sql import text @@ -677,14 +677,13 @@ async def validate_form(form: UploadFile): ) contents = await form.read() - updated_file_bytes= update_xls_form(BytesIO(contents)) + updated_file_bytes = update_xls_form(BytesIO(contents)) - form_data = await central_crud.read_and_test_xform(updated_file_bytes, file_ext, True) + form_data = await central_crud.read_and_test_xform( + updated_file_bytes, file_ext, True + ) - return { - "message": "Your form is valid", - "xlsform": form_data - } + return {"message": "Your form is valid", "xlsform": form_data} @router.post("/{project_id}/generate-project-data")