Skip to content

Commit

Permalink
fix: remove flight data from waypoints routes
Browse files Browse the repository at this point in the history
  • Loading branch information
Pradip-p committed Dec 31, 2024
1 parent b8ce2c3 commit 3479cb9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/backend/app/waypoints/waypoint_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
check_point_within_buffer,
)
from app.db import database
from app.utils import calculate_flight_time_from_placemarks, merge_multipolygon
from app.utils import merge_multipolygon
from app.s3 import get_file_from_bucket
from typing import Annotated
from psycopg import Connection
Expand Down Expand Up @@ -166,8 +166,7 @@ async def get_task_waypoint(
media_type="application/vnd.google-earth.kmz",
filename=f"{task_id}_flight_plan.kmz",
)
flight_data = calculate_flight_time_from_placemarks(placemarks)
return {"results": placemarks, "flight_data": flight_data}
return {"results": placemarks}


@router.post("/")
Expand Down

0 comments on commit 3479cb9

Please sign in to comment.