fix
This commit is contained in:
@@ -591,18 +591,20 @@ class IntervalsIntegration(SyncIntegration):
|
||||
|
||||
# got data
|
||||
if data:
|
||||
if data['category'].lower() not in ['workout', 'target']:
|
||||
continue
|
||||
ps.name = data['name']
|
||||
try:
|
||||
ps.comment = data['description']
|
||||
except KeyError:
|
||||
pass
|
||||
ps.comment = ''
|
||||
ps.startdate = arrow.get(data['start_date_local']).datetime
|
||||
ps.enddate = arrow.get(data['end_date_local']).datetime
|
||||
ps.preferreddate = arrow.get(data['start_date_local']).datetime
|
||||
try:
|
||||
ps.sessionsport = mytypes.intervalsmappinginv[data['type']]
|
||||
except KeyError:
|
||||
pass
|
||||
ps.sessionsport = 'water'
|
||||
|
||||
ps.sessiontype = 'session'
|
||||
ps.save()
|
||||
|
||||
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
Binary file not shown.
Reference in New Issue
Block a user