Private
Public Access
1
0

improved FIT workout type determination

This commit is contained in:
Sander Roosendaal
2020-07-10 20:57:29 +02:00
parent 40c852092d
commit 7b552f8da6

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]