Private
Public Access
1
0

adding async option to NK import

This commit is contained in:
Sander Roosendaal
2021-04-19 08:41:48 +02:00
parent 2deb4fcbe3
commit 0c13f798de
9 changed files with 42 additions and 12 deletions

View File

@@ -902,7 +902,7 @@ def make_authorization_url(request):
return HttpResponseRedirect(url)
# Get workout from C2 ID
def get_workout(user,c2id):
def get_workout(user,c2id,do_async=False):
r = Rower.objects.get(user=user)
if (r.c2token == '') or (r.c2token is None):
s = "Token doesn't exist. Need to authorize"