Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2019-05-15 21:59:35 +02:00
parent baee126b1a
commit b9f8914121
2 changed files with 8 additions and 2 deletions

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)
nr_rows = len(t)
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,10 @@ def handle_strava_import_stroke_data(title,
coords = get_strava_stream(r,'latlng',stravaid)
power = get_strava_stream(r,'power',stravaid)
nr_rows = len(t)
if t is not None:
nr_rows = len(t)
else:
return 0
if nr_rows == 0:
return 0

Binary file not shown.