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()
|
_ = self.open()
|
||||||
_ = myqueue(queuehigh,
|
_ = myqueue(queuehigh,
|
||||||
handle_c2_getworkout,
|
handle_c2_getworkout,
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user