Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 29, 2024
1 parent 353ee13 commit fb29a68
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/backend/app/projects/project_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit fb29a68

Please sign in to comment.