diff --git a/src/backend/app/projects/project_crud.py b/src/backend/app/projects/project_crud.py index b2d2f74df3..9583b84ab0 100644 --- a/src/backend/app/projects/project_crud.py +++ b/src/backend/app/projects/project_crud.py @@ -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)