Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2018-11-27 09:53:09 +01:00
parent f17dbadf8a
commit 8d3aae1d28

View File

@@ -175,13 +175,14 @@ def create_async_workout(alldata,user,stravaid,debug=False):
except:
workouttype = 'other'
if workouttype not in [x[0] for x in Workout.workouttypes]:
workouttype = 'other'
if workouttype.lower() == 'rowing':
workouttype = 'rower'
if 'summary_polyline' in data['map']:
workouttype = 'water'
if workouttype not in [x[0] for x in Workout.workouttypes]:
workouttype = 'other'
try:
comments = data['comments']