Private
Public Access
1
0

100 percent coverage on analysis views

This commit is contained in:
Sander Roosendaal
2021-04-15 18:56:58 +02:00
parent 456e9df73e
commit b8eba29019
2 changed files with 11 additions and 13 deletions

View File

@@ -177,8 +177,6 @@ def set_strava_athlete_id(user):
r.strava_owner_id = response.json()['id']
r.save()
return response.json()['id']
else:
print(response)
return 0
@@ -775,7 +773,7 @@ def workout_strava_upload(user,w, quick=False,asynchron=True):
activity_type = mytypes.stravamapping[w.workouttype]
except KeyError:
activity_type = 'Rowing'
print(w.workouttype,activity_type)
with open(tcxfile,'rb') as f:
res,mes = handle_stravaexport(
f,w.name,