Private
Public Access
1
0

Merge branch 'release/v13.31'

This commit is contained in:
Sander Roosendaal
2020-07-10 21:09:12 +02:00

View File

@@ -1562,7 +1562,7 @@ def get_workouttype_from_fit(filename,workouttype='water'):
records = fitfile.messages
fittype = 'rowing'
for record in records:
if record.name == 'sport':
if record.name in ['sport','lap']:
fittype = record.get_values()['sport'].lower()
try:
workouttype = mytypes.fitmappinginv[fittype]