Die Eingabeparameter 'id' in 06_migrationsstatus_treeview und -number beim Aufruf des Sivas2Json-Programms von Hr. Jakob sind nun jeweils in Anführungszeichen, damit auch Teilenummern mit Leerzeichen, wie z.B. 'TOS Auswahl ILS' korrekt verarbeitet werden können. Ansonsten endet das Parameterargument beim Leerzeichen

This commit is contained in:
2024-11-22 00:25:10 +01:00
parent e2d9951e38
commit a16f8a8845
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
@echo off @echo off
:start :start
set /p "id=Baugruppennummer: " set /p "id=Baugruppennummer: "
CALL 04_compare_lists.bat --sivasid %id% -t CALL 04_compare_lists.bat --sivasid "%id%" -t
goto start goto start
+1 -1
View File
@@ -71,7 +71,7 @@ def get_sivas_dbase(sivas_id, out_dir):
if os.path.isdir(out_dir): if os.path.isdir(out_dir):
print(f"Attempting to generate a json-file of all parts to be migrated in relation with '{sivas_id}'") print(f"Attempting to generate a json-file of all parts to be migrated in relation with '{sivas_id}'")
subprocess.run(f"{sivas_exe_path} -o {out_dir} --format json -number {sivas_id}") subprocess.run(f'{sivas_exe_path} -o {out_dir} --format json -number "{sivas_id}"')
if os.path.isfile(os.path.join(out_dir, sivas_id + ".json")): if os.path.isfile(os.path.join(out_dir, sivas_id + ".json")):
print("done") print("done")