Private
Public Access
1
0

Merge branch 'develop' into feature/newdataflow

This commit is contained in:
2025-10-24 16:53:50 +02:00
5 changed files with 93 additions and 7 deletions

View File

@@ -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,