Private
Public Access
1
0

importing strava data without time

This commit is contained in:
Sander Roosendaal
2019-05-25 09:49:43 +02:00
parent 3b6cc8b572
commit 2ec230fb98
4 changed files with 16 additions and 7 deletions

View File

@@ -319,7 +319,11 @@ def get_workout(user,stravaid):
if t is not None:
nr_rows = len(t)
else:
return(0,"Error: Time data wasnt found")
duration = int(workoutsummary['elapsed_time'])
t = pd.Series(range(duration+1))
nr_rows = len(t)
if nr_rows == 0:
return (0,"Error: Time data had zero length")