fif
This commit is contained in:
@@ -227,6 +227,8 @@ class IntervalsIntegration(SyncIntegration):
|
||||
token = self.open()
|
||||
except NoTokenError:
|
||||
return []
|
||||
|
||||
type_filter = kwargs.get('type_filter', None)
|
||||
|
||||
url = self.oauth_data['base_url'] + 'athlete/0/activities?'
|
||||
startdate = timezone.now() - timedelta(days=30)
|
||||
@@ -278,7 +280,8 @@ class IntervalsIntegration(SyncIntegration):
|
||||
values = [i, d, ttot, s, r, s2, c, nnn]
|
||||
|
||||
ress = dict(zip(keys, values))
|
||||
workouts.append(ress)
|
||||
if not type_filter or r in type_filter:
|
||||
workouts.append(ress)
|
||||
except KeyError:
|
||||
dologging('intervals.icu.log', item)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user