Skip to content

Commit

Permalink
Merge pull request #222 from hotosm/develop
Browse files Browse the repository at this point in the history
hotfix: downloading flightplan
  • Loading branch information
nrjadkry authored Sep 13, 2024
2 parents 156bd4f + e542f2d commit 11a14ce
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/backend/app/waypoints/waypoint_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,11 @@ async def get_task_waypoint(
)
if download:
outfile = outfile = f"/tmp/{uuid.uuid4()}"
return wpml.create_wpml(placemarks, outfile)
kmz_file = wpml.create_wpml(placemarks, outfile)
return FileResponse(
kmz_file, media_type="application/zip", filename="flight_plan.kmz"
)

return placemarks


Expand Down

0 comments on commit 11a14ce

Please sign in to comment.