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