tests pass
This commit is contained in:
@@ -2204,10 +2204,10 @@ def new_workout_from_file(r, f2,
|
||||
# Get workout type from fit & tcx
|
||||
if (fileformat == 'fit'): # pragma: no cover
|
||||
workouttype = get_workouttype_from_fit(f2,workouttype=workouttype)
|
||||
if (fileformat == 'tcx'):
|
||||
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
|
||||
#if (fileformat == 'tcx'):
|
||||
# workouttype_from_tcx = get_workouttype_from_tcx(f2,workouttype=workouttype)
|
||||
# if workouttype != 'rower' 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'):
|
||||
|
||||
Reference in New Issue
Block a user