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