Private
Public Access
1
0

fixing bug

This commit is contained in:
Sander Roosendaal
2023-02-20 07:59:37 +01:00
parent 2b5b151fe7
commit 9d49faee69
6 changed files with 6 additions and 6 deletions

View File

@@ -354,7 +354,7 @@ class C2Integration(SyncIntegration):
def get_workout(self, id): def get_workout(self, id, *args, **kwargs):
_ = self.open() _ = self.open()
_ = myqueue(queuehigh, _ = myqueue(queuehigh,
handle_c2_getworkout, handle_c2_getworkout,

View File

@@ -57,7 +57,7 @@ class SyncIntegration(metaclass=ABCMeta):
pass pass
@abstractmethod @abstractmethod
def get_workout(self, id) -> int: def get_workout(self, id, *args, **kwargs) -> int:
return 0 return 0
# need to unify workout list # need to unify workout list

View File

@@ -335,7 +335,7 @@ class PolarIntegration(SyncIntegration):
return response return response
def get_workout(self, id, transaction_id) -> int: def get_workout(self, id, transaction_id, *args, **kwargs) -> int:
r = self.rower r = self.rower
_ = self.open() _ = self.open()
authorizationstring = str('Bearer ' + r.polartoken) authorizationstring = str('Bearer ' + r.polartoken)

View File

@@ -249,7 +249,7 @@ class SportTracksIntegration(SyncIntegration):
def get_workout(self, id) -> int: def get_workout(self, id, *args, **kwargs) -> int:
_ = self.open() _ = self.open()
r = self.rower r = self.rower

View File

@@ -204,7 +204,7 @@ class StravaIntegration(SyncIntegration):
return NotImplemented return NotImplemented
# get_workout # get_workout
def get_workout(self, id) -> int: def get_workout(self, id, *args, **kwargs) -> int:
try: try:
_ = self.open() _ = self.open()
except NoTokenError: except NoTokenError:

View File

@@ -87,7 +87,7 @@ class TPIntegration(SyncIntegration):
def get_workouts(self, *args, **kwargs) -> int: def get_workouts(self, *args, **kwargs) -> int:
raise NotImplementedError("not implemented") raise NotImplementedError("not implemented")
def get_workout(self, id) -> int: def get_workout(self, id, *args, **kwargs) -> int:
raise NotImplementedError("not implemented") raise NotImplementedError("not implemented")
def get_workout_list(self, *args, **kwargs) -> list: def get_workout_list(self, *args, **kwargs) -> list: