Private
Public Access
1
0

small bug fixes

This commit is contained in:
Sander Roosendaal
2019-05-01 16:47:18 +02:00
parent 4f2858cebd
commit 97a24b9186
5 changed files with 12 additions and 6 deletions

View File

@@ -493,9 +493,12 @@ def get_strava_stream(r,metric,stravaid,series_type='time',fetchresolution='high
for data in s.json():
y = None
if data['type'] == metric:
return np.array(data['data'])
try:
if data['type'] == metric:
return np.array(data['data'])
except TypeError:
return None
return None
def allmonths(startdate,enddate):