Skip to content

Commit

Permalink
Fix 'loadinfrastructure' condition adding to infra without 'eid-field…
Browse files Browse the repository at this point in the history
…' option
  • Loading branch information
noelmartinon authored Oct 10, 2024
1 parent 8abe56a commit 0c5b553
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,8 @@ def create_infrastructure(self, geometry, name, type, category, use_structure,
self.stdout.write("Update : %s with eid %s" % (name, eid))
else:
infra = Infrastructure.objects.create(**fields_without_eid)
if condition_type:
infra.conditions.add(condition_type)
if settings.TREKKING_TOPOLOGY_ENABLED:
try:
geometry.coord_dim = 2
Expand Down

0 comments on commit 0c5b553

Please sign in to comment.