Private
Public Access
1
0

fixes icu

This commit is contained in:
2025-01-08 20:05:13 +01:00
parent 3a917354af
commit 44df1a6d79
7 changed files with 72 additions and 34 deletions

View File

@@ -737,6 +737,10 @@ def steps_write_fit(steps):
url = settings.WORKOUTS_FIT_URL+"/tofit"
headers = {'Authorization': authorizationstring}
# 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'])
response = requests.post(url=url, headers=headers, json=steps)
if response.status_code != 200: # pragma: no cover