Skip to content

Commit

Permalink
fix: rename upload-->project_geojson upload boundary
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Nov 21, 2023
1 parent 9611378 commit 0d2e721
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/backend/app/projects/project_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ async def upload_custom_xls(
@router.post("/{project_id}/upload_multi_polygon")
async def upload_multi_project_boundary(
project_id: int,
upload: UploadFile = File(...),
project_geojson: UploadFile = File(...),
db: Session = Depends(database.get_db),
):
"""This API allows for the uploading of a multi-polygon project boundary
Expand All @@ -368,8 +368,8 @@ async def upload_multi_project_boundary(
"Uploading project boundary multipolygon for " f"project ID: {project_id}"
)
# read entire file
await upload.seek(0)
content = await upload.read()
await project_geojson.seek(0)
content = await project_geojson.read()
boundary = json.loads(content)

# Validatiing Coordinate Reference System
Expand Down

0 comments on commit 0d2e721

Please sign in to comment.