# 450 Optimization recalculate_parcels command

* optimizes recalculate_parcels.py command so that only non-empty geometries will be processed
* drops test_identifier_generating.py command due to missing usage
This commit is contained in:
2025-01-08 14:27:23 +01:00
parent 53d0af89ac
commit 2af91aa178
2 changed files with 3 additions and 52 deletions
@@ -34,7 +34,9 @@ class Command(BaseKonovaCommand):
def recalculate_parcels(self, options: dict):
force_all = options.get("force_all", False)
geometry_objects = Geometry.objects.all().exclude(
geometry_objects = Geometry.objects.filter(
geom__isempty=False,
).exclude(
geom=None
)