fixed strava better
This commit is contained in:
@@ -490,8 +490,13 @@ def get_strava_stream(r,metric,stravaid,series_type='time',fetchresolution='high
|
||||
|
||||
|
||||
s = requests.get(url,headers=headers)
|
||||
|
||||
for data in s.json():
|
||||
y = None
|
||||
if data['type'] == metric:
|
||||
return np.array(data['data'])
|
||||
|
||||
return s
|
||||
return None
|
||||
|
||||
def allmonths(startdate,enddate):
|
||||
d = startdate
|
||||
|
||||
Reference in New Issue
Block a user