From 5704fe144aaf69c8dbe843e66e43b6d5f903648e Mon Sep 17 00:00:00 2001 From: sujanadh Date: Fri, 19 Jan 2024 13:05:43 +0545 Subject: [PATCH] Fix condition in elif statement for Feature type detection --- src/backend/app/projects/project_crud.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)