Private
Public Access
1
0

fixed repeatUntilStepsCmplt

This commit is contained in:
2025-04-14 20:55:45 +02:00
parent 8175e8f954
commit ec4822be39
3 changed files with 15 additions and 0 deletions

View File

@@ -749,12 +749,16 @@ def steps_write_fit(steps):
headers = {'Authorization': authorizationstring}
# convert to json, value of keys called wkt_step_name to string
newsteps = []
for step in steps['steps']:
step['wkt_step_name'] = str(step['wkt_step_name'])
# convert numerical values in the dict to integers
for key in step.keys():
if isinstance(step[key], (int, float)):
step[key] = int(step[key])
newsteps.append(step)
steps['steps'] = newsteps
response = requests.post(url=url, headers=headers, json=steps)