diff --git a/rowers/management/commands/processemail.py b/rowers/management/commands/processemail.py index 16a42f05..36f3553c 100644 --- a/rowers/management/commands/processemail.py +++ b/rowers/management/commands/processemail.py @@ -83,9 +83,9 @@ def processattachment(rower, fileobj, title, uploadoptions,testing=False): if uploadoptions and not 'error' in uploadoptions: workout = Workout.objects.get(id=workoutid[0]) - uploads.do_sync(workout, uploadoptions) uploads.make_private(workout, uploadoptions) uploads.set_workouttype(workout, uploadoptions) + uploads.do_sync(workout, uploadoptions) if 'make_plot' in uploadoptions: plottype = uploadoptions['plottype'] workoutcsvfilename = workout.csvfilename[6:-4]