Skip to content

Commit

Permalink
Merge pull request #1130 from hotosm/fix-geom-type
Browse files Browse the repository at this point in the history
hotfix: geom type not populated with feature type
  • Loading branch information
nrjadkry authored Jan 23, 2024
2 parents 15345c5 + aa2680d commit 749431f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/app/projects/project_crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ async def get_data_extract_url(
}
}

if geom_type := aoi.get("type") == "FeatureCollection":
if (geom_type := aoi.get("type")) == "FeatureCollection":
# Convert each feature into a Shapely geometry
geometries = [
shape(feature.get("geometry")) for feature in aoi.get("features", [])
Expand Down

0 comments on commit 749431f

Please sign in to comment.