From 650f7c320a78cb21bf9dce15a82c68e59c1140f3 Mon Sep 17 00:00:00 2001 From: spwoodcock Date: Fri, 19 Jan 2024 09:50:50 +0000 Subject: [PATCH] refactor: fix linting errors in project_crud --- 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 9583b84ab0..410cf56e06 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 == "Feature": merged_geom = shape(aoi.get("geometry")) else: merged_geom = shape(aoi)