Skip to content

Commit

Permalink
Fix condition in elif statement for Feature type detection
Browse files Browse the repository at this point in the history
  • Loading branch information
sujanadh committed Jan 19, 2024
1 parent 1a9aabc commit 5704fe1
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 5704fe1

Please sign in to comment.