Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2019-09-21 14:19:22 +02:00
parent 1969e7266e
commit 2ba62ba28c
2 changed files with 11 additions and 8 deletions

View File

@@ -100,8 +100,11 @@ def workout_strava_upload_view(request,id=0):
if w.workouttype in mytypes.rowtypes:
activity_type = r.stravaexportas
else:
activity_type = mytypes.stravamapping[w.workouttype]
try:
activity_type = mytypes.stravamapping[w.workouttype]
except KeyError:
activity_type = 'Ride'
res,mes = stravastuff.handle_stravaexport(
f,w.name,
r.stravatoken,