Skip to content

Commit

Permalink
refactor: fix return type for organisation url validator
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Jan 24, 2024
1 parent 69a1a19 commit c42af08
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 24 deletions.
24 changes: 0 additions & 24 deletions src/backend/app/central/central_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,27 +263,3 @@ async def get_submission(
except Exception as e:
log.error(e)
raise HTTPException(status_code=500, detail=str(e)) from e


# @router.get("/upload")
# async def upload_project_files(
# project_id: int,
# filespec: str
# ):
# """Upload the XForm and data files to Central"""
# log.warning("/central/upload is Unimplemented!")
# return {"message": "Hello World from /central/upload"}


# @router.get("/download")
# async def download_project_files(
# project_id: int,
# type: central_schemas.CentralFileType
# ):
# """Download the project data files from Central. The filespec is
# a string that can contain multiple filenames separated by a comma.
# """
# # FileResponse("README.md")
# # xxx = central_crud.does_central_exist()
# log.warning("/central/download is Unimplemented!")
# return {"message": "Hello World from /central/download"}
1 change: 1 addition & 0 deletions src/backend/app/organisations/organisation_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def convert_url_to_str(cls, value: HttpUrl) -> str:
"""
if value:
return value.unicode_string()
return ""

@computed_field
@property
Expand Down

0 comments on commit c42af08

Please sign in to comment.