c2 to async
This commit is contained in:
@@ -4500,11 +4500,10 @@ def workout_upload_api(request):
|
||||
|
||||
w = Workout.objects.get(id=id)
|
||||
|
||||
uploads.do_sync(w,post_data,quick=True)
|
||||
|
||||
if make_plot:
|
||||
res, jobid = uploads.make_plot(r,w,f1,f2,plottype,t)
|
||||
|
||||
uploads.do_sync(w,post_data,quick=True)
|
||||
|
||||
else: # form invalid
|
||||
if fstr:
|
||||
@@ -4529,7 +4528,6 @@ def workout_upload_api(request):
|
||||
}
|
||||
)
|
||||
email_sent = send_confirm(r.user, t, link, '')
|
||||
|
||||
return JSONResponse(status=statuscode,data=message)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user