st half implemented
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
from .integrations import SyncIntegration, NoTokenError
|
||||
from rowers.models import User, Rower, Workout, TombStone
|
||||
|
||||
from rowingdata import rowingdata
|
||||
|
||||
from rowers import mytypes
|
||||
from rowers.nkimportutils import *
|
||||
from rowers.tasks import handle_nk_async_workout
|
||||
@@ -31,7 +29,7 @@ queuehigh = django_rq.get_queue('low')
|
||||
|
||||
class NKIntegration(SyncIntegration):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(NKIntegration, self).__init__(self, *args, **kwargs)
|
||||
super(NKIntegration, self).__init__(*args, **kwargs)
|
||||
self.oauth_data = {
|
||||
'client_id': NK_CLIENT_ID,
|
||||
'client_secret': NK_CLIENT_SECRET,
|
||||
@@ -310,7 +308,3 @@ class NKIntegration(SyncIntegration):
|
||||
|
||||
return r.nktoken
|
||||
|
||||
# just as a quick test during development
|
||||
u = User.objects.get(id=1)
|
||||
|
||||
nk_integration_1 = NKIntegration(u)
|
||||
|
||||
Reference in New Issue
Block a user