that's not a warning, that's a note

This commit is contained in:
Laura Klünder 2024-12-25 13:08:48 +01:00
parent 237063a840
commit 5d53ab19ef

View file

@ -112,14 +112,14 @@ class Command(BaseCommand):
if not unary_union([unwrap_geom(h.geometry) for h in new_space.holes.all()]).intersects(new_geometry):
# current selected spacae is fine, that's it
break
print(f"WARNING: {name} is in a hole, looking lower...")
print(f"NOTE: {name} is in a hole, looking lower...")
# find a lower space
possible_spaces = [space for space in spaces_for_level[lower_level]
if space.geometry.intersects(new_geometry)]
if possible_spaces:
new_space = possible_spaces[0]
print(f"WARNING: {name} moved to lower space {new_space}")
print(f"NOTE: {name} moved to lower space {new_space}")
else:
print(f"WARNING: {name} couldn't find a lower space, still in a hole")