fixed repeatUntilStepsCmplt
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user