fix
This commit is contained in:
@@ -3411,9 +3411,12 @@ def handle_nk_async_workout(alldata, userid, nktoken, nkid, delaysec, defaulttim
|
||||
if workoutid == 0:
|
||||
return 0
|
||||
|
||||
workout = Workout.objects.get(id=workoutid)
|
||||
newnkid = workout.uploadedtonk
|
||||
sr = create_or_update_syncrecord(workout.user, workout, nkid=newnkid)
|
||||
try:
|
||||
workout = Workout.objects.get(id=workoutid)
|
||||
newnkid = workout.uploadedtonk
|
||||
sr = create_or_update_syncrecord(workout.user, workout, nkid=newnkid)
|
||||
except Workout.DoesNotExist:
|
||||
pass
|
||||
|
||||
return workoutid
|
||||
|
||||
|
||||
Reference in New Issue
Block a user