Fehlende Länge des Tunnels zu Fehler deklariert

This commit is contained in:
Michael Stangl
2026-04-20 15:34:11 +02:00
parent e34526b2dd
commit 4d5aeb5596
2 changed files with 7 additions and 9 deletions
+1 -1
View File
@@ -573,7 +573,7 @@ class Anlage():
color = "blue"
elif re.match("t-.*", rname):
color = "orange"
tname = rname.split("-")[2]
tname = rname.split("-", 2)[2]
weight = self.get_tunnel_length(tname)
elif re.match("c-.*", rname):
color = "green"