Private
Public Access
1
0

more stravastuff coverage

This commit is contained in:
Sander Roosendaal
2021-04-22 18:20:59 +02:00
parent b37bfe2735
commit 99dfb171b5
3 changed files with 25 additions and 3 deletions

View File

@@ -818,7 +818,7 @@ def workout_strava_upload(user,w, quick=False,asynchron=True):
w.save()
os.remove(tcxfile)
return message,stravaid
return message,stravaid
return message,stravaid # pragma: no cover
@@ -916,7 +916,7 @@ def handle_strava_import_stroke_data(title,
lon = coords[:,1]
if lat.std() == 0 and lon.std() == 0 and workouttype == 'water': # pragma: no cover
workouttype = 'rower'
except IndexError:
except IndexError: # pragma: no cover
lat = np.zeros(len(t))
lon = np.zeros(len(t))
if workouttype == 'water':