Merge branch 'develop' into feature/newdataflow
This commit is contained in:
@@ -133,6 +133,14 @@ def handle_intervals_getworkout(rower, intervalstoken, workoutid, debug=False, *
|
||||
|
||||
data = response.json()
|
||||
|
||||
try:
|
||||
workoutsource = data['device_name']
|
||||
except KeyError:
|
||||
workoutsource = 'intervals.icu'
|
||||
|
||||
if 'garmin' in workoutsource.lower():
|
||||
title = 'Garmin: '+ title
|
||||
|
||||
try:
|
||||
title = data['name']
|
||||
except KeyError:
|
||||
@@ -205,6 +213,7 @@ def handle_intervals_getworkout(rower, intervalstoken, workoutid, debug=False, *
|
||||
'user': rower.user.id,
|
||||
'boattype': '1x',
|
||||
'workouttype': workouttype,
|
||||
'workoutsource': workoutsource,
|
||||
'file': fit_filename,
|
||||
'intervalsid': workoutid,
|
||||
'title': title,
|
||||
|
||||
Reference in New Issue
Block a user