Skip to content

Commit

Permalink
fix: import errors in project routes
Browse files Browse the repository at this point in the history
  • Loading branch information
Pradip-p committed Dec 30, 2024
1 parent 0b54fa8 commit 49e321e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/backend/app/projects/project_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 49e321e

Please sign in to comment.