From 53bfd170fcf74fbd655985a97cc5ad5342f9d6bd Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Fri, 28 Dec 2018 08:08:22 +0100 Subject: [PATCH] swapped order - sync after setting workout type --- rowers/management/commands/processemail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]