Private
Public Access
1
0

Merge branch 'develop' into feature/freecoach

This commit is contained in:
Sander Roosendaal
2019-05-15 22:04:32 +02:00
2 changed files with 6 additions and 2 deletions

View File

@@ -1200,6 +1200,7 @@ def parsenonpainsled(fileformat,f2,summary):
hasrecognized = True
except KeyError:
hasrecognized = False
return None, hasrecognized, '', 'unknown'
# handle speed coach GPS 2
if (fileformat == 'speedcoach2'):

View File

@@ -316,7 +316,10 @@ def get_workout(user,stravaid):
coords = get_strava_stream(r,'latlng',stravaid)
power = get_strava_stream(r,'power',stravaid)
if t is not None:
nr_rows = len(t)
else:
return(0,"Error: Time data wasnt found")
if nr_rows == 0:
return (0,"Error: Time data had zero length")
@@ -701,7 +704,7 @@ def handle_strava_import_stroke_data(title,
coords = get_strava_stream(r,'latlng',stravaid)
power = get_strava_stream(r,'power',stravaid)
if nr_rows is not None:
if t is not None:
nr_rows = len(t)
else:
return 0