Private
Public Access
1
0

add match option to stravaexportas

This commit is contained in:
Sander Roosendaal
2021-02-10 20:17:48 +01:00
parent 103a946fe7
commit bc0d34e78c
3 changed files with 24 additions and 4 deletions

View File

@@ -93,8 +93,14 @@ def workout_strava_upload_view(request,id=0):
newnotes = w.notes+'\n from '+w.workoutsource+' via rowsandall.com'
except TypeError:
newnotes = 'from '+w.workoutsource+' via rowsandall.com'
activity_type = 'Ride'
if w.workouttype in mytypes.rowtypes:
activity_type = r.stravaexportas
if activity_type == 'match':
try:
activity_type = mytypes.stravamapping[w.workouttype]
except KeyError:
activity_type = 'Ride'
else:
try:
activity_type = mytypes.stravamapping[w.workouttype]