Private
Public Access
1
0

Merge branch 'develop' into feature/cp2

This commit is contained in:
Sander Roosendaal
2020-10-02 07:01:19 +02:00
3 changed files with 48 additions and 22 deletions

View File

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

File diff suppressed because one or more lines are too long