Private
Public Access
1
0

fixed strava better

This commit is contained in:
Sander Roosendaal
2019-04-14 21:48:19 -04:00
parent 5139577cd9
commit 314219e8d9
4 changed files with 35 additions and 44 deletions

View File

@@ -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