Private
Public Access
1
0

fix nk import

This commit is contained in:
Sander Roosendaal
2023-02-19 19:42:04 +01:00
parent 980c076a18
commit 2b5b151fe7
2 changed files with 10 additions and 9 deletions

View File

@@ -394,7 +394,10 @@ def workout_import_view(request, source='c2'):
ids = tdict['workoutid']
nkids = [int(id) for id in ids]
for nkid in nkids:
_ = integration.get_workout(nkid)
try:
_ = integration.get_workout(nkid, startdate=startdate, enddate=enddate)
except NoTokenError:
pass
messages.info(
request,
'Your {source} workouts will be imported in the background.'