Private
Public Access
1
0

temp logging

This commit is contained in:
2024-12-11 19:23:44 +01:00
parent bbb85d7799
commit 3e9c23b03f
4 changed files with 38 additions and 2 deletions

View File

@@ -128,7 +128,7 @@ class IntervalsIntegration(SyncIntegration):
except TypeError:
newnotes = 'from'+w.workoutsource+' via rowsandall.com'
row.exporttotcx(tcxfilename, notes=newnotes)
row.exporttotcx(tcxfilename, notes=newnotes, sport=mytypes.intervalsmapping[w.workouttype])
if dozip:
gzfilename = tcxfilename + '.gz'
try:
@@ -181,6 +181,7 @@ class IntervalsIntegration(SyncIntegration):
# set workout type to workouttype
url = "https://intervals.icu/api/v1/activity/{activityid}".format(activityid=id)
thetype = mytypes.intervalsmapping[workout.workouttype]
response = requests.put(url, headers=headers, json={'type': thetype})