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 Jan 24, 2024
1 parent b147647 commit fec90b3
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/backend/app/projects/project_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,10 @@ async def update_project_form(
contents = await form.read()

form_updated = await project_crud.update_project_form(
db, project_id, contents, file_ext[1:] # Form Contents # File type
db,
project_id,
contents,
file_ext[1:], # Form Contents # File type
)

return form_updated
Expand Down Expand Up @@ -904,7 +907,10 @@ async def update_project_category(

# Update odk forms
await project_crud.update_project_form(
db, project_id, file_ext[1:] if upload else "xls", upload # Form
db,
project_id,
file_ext[1:] if upload else "xls",
upload, # Form
)

return JSONResponse(status_code=200, content={"success": True})
Expand Down Expand Up @@ -1157,7 +1163,7 @@ async def get_task_status(
async def get_template_file(
file_type: str = Query(
..., enum=["data_extracts", "form"], description="Choose file type"
)
),
):
"""Get template file.
Expand Down

0 comments on commit fec90b3

Please sign in to comment.