Private
Public Access
1
0

swapped order - sync after setting workout type

This commit is contained in:
Sander Roosendaal
2018-12-28 08:08:22 +01:00
parent 39c7bff4ef
commit 53bfd170fc

View File

@@ -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]