From c42af088fd7855d3d13fbdf0c69422e8b90a930f Mon Sep 17 00:00:00 2001 From: spwoodcock Date: Wed, 24 Jan 2024 18:36:56 +0000 Subject: [PATCH] refactor: fix return type for organisation url validator --- src/backend/app/central/central_routes.py | 24 ------------------- .../app/organisations/organisation_schemas.py | 1 + 2 files changed, 1 insertion(+), 24 deletions(-) diff --git a/src/backend/app/central/central_routes.py b/src/backend/app/central/central_routes.py index 122842460f..60e7f13997 100644 --- a/src/backend/app/central/central_routes.py +++ b/src/backend/app/central/central_routes.py @@ -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"} diff --git a/src/backend/app/organisations/organisation_schemas.py b/src/backend/app/organisations/organisation_schemas.py index 26f76af45e..0a2b9aabc8 100644 --- a/src/backend/app/organisations/organisation_schemas.py +++ b/src/backend/app/organisations/organisation_schemas.py @@ -48,6 +48,7 @@ def convert_url_to_str(cls, value: HttpUrl) -> str: """ if value: return value.unicode_string() + return "" @computed_field @property