Kleiner Fix, falls ein Leerzeichen vom Sivas mitkommt, wird die Datei nicht gefunden.
This commit is contained in:
+1
-2
@@ -913,8 +913,7 @@ def map_sensor_to_cable_cfg(plines):
|
|||||||
section_list = mapping[name_prefix]
|
section_list = mapping[name_prefix]
|
||||||
else:
|
else:
|
||||||
sens2cable[pl.id].append("Kein Kabeltyp zugewiesen (BMK.cfg)")
|
sens2cable[pl.id].append("Kein Kabeltyp zugewiesen (BMK.cfg)")
|
||||||
section_list = list()
|
continue # Kein Mapping gefunden, Rest überspringen
|
||||||
# TODO was soll hier passieren wenn die Config falsch ist?
|
|
||||||
|
|
||||||
# Liste aus evtl. mehreren Sektionen erzeugen
|
# Liste aus evtl. mehreren Sektionen erzeugen
|
||||||
sections = [s.strip() for s in section_list.split(",")]
|
sections = [s.strip() for s in section_list.split(",")]
|
||||||
|
|||||||
+1
-1
@@ -99,7 +99,7 @@ def prepare_data(rawdata:dict):
|
|||||||
for sname, sdata in sensors.items():
|
for sname, sdata in sensors.items():
|
||||||
dsensors[sname] = {
|
dsensors[sname] = {
|
||||||
"point": Point(sdata["pos"]),
|
"point": Point(sdata["pos"]),
|
||||||
"artinr": sdata.get("ARTINR","")
|
"artinr": sdata.get("ARTINR","").strip()
|
||||||
}
|
}
|
||||||
|
|
||||||
subdists = rawdata["distributors"]
|
subdists = rawdata["distributors"]
|
||||||
|
|||||||
Reference in New Issue
Block a user