Merge branch 'release/v14.34'
This commit is contained in:
@@ -397,6 +397,9 @@ def add_workouts_plannedsession(ws,ps,r):
|
||||
if ps.sessiontype == 'fastest_distance':
|
||||
records = CourseTestResult.objects.filter(userid=w.user.id,plannedsession=ps)
|
||||
for record in records:
|
||||
w1 = Workout.objects.get(id=record.workoutid)
|
||||
w1.plannedsession = None
|
||||
w1.save()
|
||||
record.delete()
|
||||
|
||||
df = dataprep.getsmallrowdata_db(['time','cumdist'],ids=[w.id])
|
||||
@@ -429,6 +432,9 @@ def add_workouts_plannedsession(ws,ps,r):
|
||||
if ps.sessiontype == 'fastest_time':
|
||||
records = CourseTestResult.objects.filter(userid=w.user.id,plannedsession=ps)
|
||||
for record in records:
|
||||
w1 = Workout.objects.get(id=record.workoutid)
|
||||
w1.plannedsession = None
|
||||
w1.save()
|
||||
record.delete()
|
||||
|
||||
df = dataprep.getsmallrowdata_db(['time','cumdist'],ids=[w.id])
|
||||
|
||||
Reference in New Issue
Block a user