Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2018-11-15 17:00:14 +01:00
parent 2add7b52a2
commit a92232adf1
2 changed files with 3 additions and 17 deletions

View File

@@ -165,7 +165,7 @@ def create_async_workout(alldata,user,stravaid,debug=False):
try:
workouttype = mytypes.stravamappinginv[data['type']]
except:
workouttype = 'rower'
workouttype = 'other'
if workouttype.lower() == 'rowing':
workouttype = 'rower'
@@ -446,7 +446,7 @@ def add_workout_from_data(user,importid,data,strokedata,
try:
workouttype = mytypes.stravamappinginv[data['type']]
except KeyError:
workouttype = 'rower'
workouttype = 'other'
if workouttype.lower() == 'rowing':
workouttype = 'rower'