Skip to content

Commit ef0dea6

Browse files
committed
Add debug log to reorder_topologies command
1 parent c9014b3 commit ef0dea6

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

docs/changelog.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ CHANGELOG
55
2.101.0+dev (XXXX-XX-XX)
66
------------------------
77

8+
**Improvements**
9+
10+
- Add debug log to `reorder_topologies` command
11+
12+
813
2.101.0 (2023-10-05)
914
------------------------
1015

geotrek/core/management/commands/reorder_topologies.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ def handle(self, *args, **options):
6868
""")
6969
points = cursor.fetchall()
7070
id_order = 0
71-
71+
if options['verbosity']:
72+
self.stdout.write(f'Processing topology : {topology.pk}')
7273
dict_points = {}
7374
for id_pa_point, geom_point_wkt in points:
7475
dict_points[id_pa_point] = GEOSGeometry(geom_point_wkt, srid=settings.SRID)

0 commit comments

Comments
 (0)