Skip to content

Commit

Permalink
Merge pull request #1119 from hotosm/fix-data-extract
Browse files Browse the repository at this point in the history
Fix condition in elif statement for Feature type detection
  • Loading branch information
nrjadkry authored Jan 19, 2024
2 parents 1a9aabc + 5704fe1 commit a3b2fc7
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 @@ -621,7 +621,7 @@ async def get_data_extract_url(
shape(feature.get("geometry")) for feature in aoi.get("features", [])
]
merged_geom = unary_union(geometries)
elif geom_type == aoi.get("type") == "Feature":
elif geom_type := aoi.get("type") == "Feature":
merged_geom = shape(aoi.get("geometry"))
else:
merged_geom = shape(aoi)
Expand Down

0 comments on commit a3b2fc7

Please sign in to comment.