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]
|
nkids = [int(id) for id in ids]
|
||||||
alldata = {}
|
alldata = {}
|
||||||
|
|
||||||
for item in res.json()['data']:
|
for item in res.json():
|
||||||
alldata[item['id']] = item
|
alldata[item['id']] = item
|
||||||
counter = 0
|
counter = 0
|
||||||
for nkid in nkids:
|
for nkid in nkids:
|
||||||
@@ -660,7 +660,7 @@ def workout_nkimport_view(request,userid=0,after=0,before=0):
|
|||||||
r.defaulttimezone
|
r.defaulttimezone
|
||||||
)
|
)
|
||||||
counter = counter+1
|
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')
|
url = reverse('workouts_view')
|
||||||
return HttpResponseRedirect(url)
|
return HttpResponseRedirect(url)
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
|||||||
@@ -222,6 +222,7 @@ from rowers.tasks import (
|
|||||||
handle_sendemail_ical,
|
handle_sendemail_ical,
|
||||||
handle_c2_async_workout,
|
handle_c2_async_workout,
|
||||||
handle_send_email_instantplan_notification,
|
handle_send_email_instantplan_notification,
|
||||||
|
handle_nk_async_workout,
|
||||||
)
|
)
|
||||||
|
|
||||||
from scipy.signal import savgol_filter
|
from scipy.signal import savgol_filter
|
||||||
|
|||||||
Reference in New Issue
Block a user