Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2021-12-02 18:54:20 +01:00
parent 5dbde8b744
commit 81d665f9a1
2 changed files with 3 additions and 2 deletions

View File

@@ -644,7 +644,7 @@ def workout_nkimport_view(request,userid=0,after=0,before=0):
nkids = [int(id) for id in ids]
alldata = {}
for item in res.json()['data']:
for item in res.json():
alldata[item['id']] = item
counter = 0
for nkid in nkids:
@@ -660,7 +660,7 @@ def workout_nkimport_view(request,userid=0,after=0,before=0):
r.defaulttimezone
)
counter = counter+1
messages.info(request,'Your NK logbook workouts will be imported in the background. It may take a few minutes before it appears.'.format(c2id=c2id))
messages.info(request,'Your NK logbook workouts will be imported in the background. It may take a few minutes before it appears.')
url = reverse('workouts_view')
return HttpResponseRedirect(url)
except KeyError:

View File

@@ -222,6 +222,7 @@ from rowers.tasks import (
handle_sendemail_ical,
handle_c2_async_workout,
handle_send_email_instantplan_notification,
handle_nk_async_workout,
)
from scipy.signal import savgol_filter