Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2022-01-17 17:30:11 +01:00
parent a4cb6ff21c
commit d130093520
2 changed files with 4 additions and 2 deletions

View File

@@ -2205,7 +2205,9 @@ def new_workout_from_file(r, f2,
if (fileformat == 'fit'): # pragma: no cover
workouttype = get_workouttype_from_fit(f2,workouttype=workouttype)
if (fileformat == 'tcx'):
workouttype = get_workouttype_from_tcx(f2,workouttype=workouttype)
workouttype_from_tcx = get_workouttype_from_tcx(f2,workouttype=workouttype)
if workouttype not in mytypes.otwtypes and workouttype_from_tcx not in mytypes.otwtypes:
workouttype = workouttype_from_tcx
# handle non-Painsled by converting it to painsled compatible CSV
if (fileformat != 'csv'):

Binary file not shown.