importing strava data without time
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user