From 7e785dd0922315e6893a077c4747bcc0eae84c2d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 1 Dec 2024 03:16:37 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/backend/app/tasks/task_splitter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/app/tasks/task_splitter.py b/src/backend/app/tasks/task_splitter.py index a871ce69..8c357aa1 100644 --- a/src/backend/app/tasks/task_splitter.py +++ b/src/backend/app/tasks/task_splitter.py @@ -218,7 +218,7 @@ def splitBySquare( ) # Store the result in the instance variable and return it self.split_features = merged_geojson - + max_polygon = max(polygons, key=lambda p: p.area, default=None) # max_area = max_polygon.area if max_polygon else 0 max_polygon_wgs84 = shapely_transform(