Skip to content

Commit

Permalink
Merge pull request #215 from hotosm/develop
Browse files Browse the repository at this point in the history
hotfix: flightplan download issue
  • Loading branch information
nrjadkry authored Sep 11, 2024
2 parents 7c9a070 + 66a7c88 commit 4b21fd5
Show file tree
Hide file tree
Showing 3 changed files with 836 additions and 537 deletions.
10 changes: 7 additions & 3 deletions src/backend/app/waypoints/waypoint_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,13 @@ async def get_task_waypoint(
inpointsfile = open(outfile_with_elevation, "r")
points_with_elevation = inpointsfile.read()

placemarks = create_placemarks.create_placemarks(
geojson.loads(points_with_elevation), parameters
)
placemarks = create_placemarks.create_placemarks(
geojson.loads(points_with_elevation), parameters
)
else:
placemarks = create_placemarks.create_placemarks(
geojson.loads(points), parameters
)
if download:
outfile = outfile = f"/tmp/{uuid.uuid4()}"
return wpml.create_wpml(placemarks, outfile)
Expand Down
Loading

0 comments on commit 4b21fd5

Please sign in to comment.