Private
Public Access
1
0
This commit is contained in:
2025-01-13 20:07:33 +01:00
parent 6ef6b6e36c
commit a7ce59026a
3 changed files with 11 additions and 2 deletions

View File

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