diff --git a/rowers/integrations/c2.py b/rowers/integrations/c2.py index 60a066e3..b2029beb 100644 --- a/rowers/integrations/c2.py +++ b/rowers/integrations/c2.py @@ -354,7 +354,7 @@ class C2Integration(SyncIntegration): - def get_workout(self, id): + def get_workout(self, id, *args, **kwargs): _ = self.open() _ = myqueue(queuehigh, handle_c2_getworkout, diff --git a/rowers/integrations/integrations.py b/rowers/integrations/integrations.py index df11b674..020fb8ac 100644 --- a/rowers/integrations/integrations.py +++ b/rowers/integrations/integrations.py @@ -57,7 +57,7 @@ class SyncIntegration(metaclass=ABCMeta): pass @abstractmethod - def get_workout(self, id) -> int: + def get_workout(self, id, *args, **kwargs) -> int: return 0 # need to unify workout list diff --git a/rowers/integrations/polar.py b/rowers/integrations/polar.py index b7c69067..0adac679 100644 --- a/rowers/integrations/polar.py +++ b/rowers/integrations/polar.py @@ -335,7 +335,7 @@ class PolarIntegration(SyncIntegration): return response - def get_workout(self, id, transaction_id) -> int: + def get_workout(self, id, transaction_id, *args, **kwargs) -> int: r = self.rower _ = self.open() authorizationstring = str('Bearer ' + r.polartoken) diff --git a/rowers/integrations/sporttracks.py b/rowers/integrations/sporttracks.py index b05f3a60..9b4de159 100644 --- a/rowers/integrations/sporttracks.py +++ b/rowers/integrations/sporttracks.py @@ -249,7 +249,7 @@ class SportTracksIntegration(SyncIntegration): - def get_workout(self, id) -> int: + def get_workout(self, id, *args, **kwargs) -> int: _ = self.open() r = self.rower diff --git a/rowers/integrations/strava.py b/rowers/integrations/strava.py index 6344fd1c..51059999 100644 --- a/rowers/integrations/strava.py +++ b/rowers/integrations/strava.py @@ -204,7 +204,7 @@ class StravaIntegration(SyncIntegration): return NotImplemented # get_workout - def get_workout(self, id) -> int: + def get_workout(self, id, *args, **kwargs) -> int: try: _ = self.open() except NoTokenError: diff --git a/rowers/integrations/trainingpeaks.py b/rowers/integrations/trainingpeaks.py index 5f3e0a4c..6280bbcc 100644 --- a/rowers/integrations/trainingpeaks.py +++ b/rowers/integrations/trainingpeaks.py @@ -87,7 +87,7 @@ class TPIntegration(SyncIntegration): def get_workouts(self, *args, **kwargs) -> int: raise NotImplementedError("not implemented") - def get_workout(self, id) -> int: + def get_workout(self, id, *args, **kwargs) -> int: raise NotImplementedError("not implemented") def get_workout_list(self, *args, **kwargs) -> list: