hotfix
This commit is contained in:
@@ -175,13 +175,14 @@ def create_async_workout(alldata,user,stravaid,debug=False):
|
|||||||
except:
|
except:
|
||||||
workouttype = 'other'
|
workouttype = 'other'
|
||||||
|
|
||||||
|
if workouttype not in [x[0] for x in Workout.workouttypes]:
|
||||||
|
workouttype = 'other'
|
||||||
|
|
||||||
if workouttype.lower() == 'rowing':
|
if workouttype.lower() == 'rowing':
|
||||||
workouttype = 'rower'
|
workouttype = 'rower'
|
||||||
if 'summary_polyline' in data['map']:
|
if 'summary_polyline' in data['map']:
|
||||||
workouttype = 'water'
|
workouttype = 'water'
|
||||||
|
|
||||||
if workouttype not in [x[0] for x in Workout.workouttypes]:
|
|
||||||
workouttype = 'other'
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
comments = data['comments']
|
comments = data['comments']
|
||||||
|
|||||||
Reference in New Issue
Block a user