Private
Public Access
1
0

fixing step editor

This commit is contained in:
2025-01-22 20:50:02 +01:00
parent 95bc02e122
commit 7190d97d29
3 changed files with 6 additions and 1 deletions

View File

@@ -740,6 +740,10 @@ def steps_write_fit(steps):
# convert to json, value of keys called wkt_step_name to string
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])
response = requests.post(url=url, headers=headers, json=steps)