From 49e321e209edf8503b623f854f5817fd7fb3d8a7 Mon Sep 17 00:00:00 2001 From: Pradip-p Date: Mon, 30 Dec 2024 13:31:11 +0545 Subject: [PATCH] fix: import errors in project routes --- src/backend/app/projects/project_routes.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/backend/app/projects/project_routes.py b/src/backend/app/projects/project_routes.py index 28f284d1..d355f644 100644 --- a/src/backend/app/projects/project_routes.py +++ b/src/backend/app/projects/project_routes.py @@ -28,7 +28,7 @@ from app.projects import project_schemas, project_deps, project_logic, image_processing from app.db import database from app.models.enums import HTTPStatus, State, FlightMode -from app.s3 import s3_client +from app.s3 import add_file_to_bucket, s3_client from app.config import settings from app.users.user_deps import login_required from app.users.user_schemas import AuthUser @@ -309,7 +309,6 @@ async def generate_presigned_url( user: Annotated[AuthUser, Depends(login_required)], data: project_schemas.PresignedUrlRequest, replace_existing: bool = False, - ): """ Generate a pre-signed URL for uploading an image to S3 Bucket. @@ -368,7 +367,7 @@ async def generate_presigned_url( status_code=HTTPStatus.BAD_REQUEST, detail=f"Failed to delete existing image. {e}", ) - + # Generate a new pre-signed URL for the image upload url = client.get_presigned_url( "PUT",