fixing bug
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user