join works
This commit is contained in:
@@ -188,8 +188,11 @@ def join_workouts(r,ids,title='Joined Workout',
|
||||
makeprivate = False
|
||||
startdatetime = timezone.now()
|
||||
|
||||
if setprivate:
|
||||
if setprivate == True and makeprivate == False:
|
||||
makeprivate = True
|
||||
elif setprivate == False and makeprivate == True:
|
||||
makeprivate = False
|
||||
|
||||
|
||||
# reorder in chronological order
|
||||
ws = Workout.objects.filter(id__in=ids).order_by("date", "starttime")
|
||||
@@ -864,6 +867,7 @@ def save_workout_database(f2, r, dosmooth=True, workouttype='rower',
|
||||
pytz.timezone(timezone_str)
|
||||
).strftime('%H:%M:%S')
|
||||
|
||||
|
||||
if makeprivate:
|
||||
privacy = 'hidden'
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user