Private
Public Access
1
0

strava import - some improvements

This commit is contained in:
Sander Roosendaal
2017-03-09 23:17:39 +01:00
parent 39b80b6716
commit 71bded30c0
2 changed files with 3 additions and 1 deletions

View File

@@ -167,6 +167,8 @@ def get_strava_workout(user,stravaid):
t = np.array(timejson.json()[0]['data'])
d = np.array(distancejson.json()[0]['data'])
nr_rows = len(t)
if nr_rows == 0:
return (0,"Error: Time data had zero length")
except KeyError:
return (0,"something went wrong with the Strava import")