bug fix
This commit is contained in:
@@ -334,7 +334,7 @@ def add_workouts_plannedsession(ws,ps,r):
|
|||||||
errors.append('For tests and training sessions, selected workouts must all be done on the same date')
|
errors.append('For tests and training sessions, selected workouts must all be done on the same date')
|
||||||
return result,comments,errors
|
return result,comments,errors
|
||||||
|
|
||||||
if ws.count()>1 and ps.sessiontype == 'test':
|
if len(ws)>1 and ps.sessiontype == 'test':
|
||||||
errors.append('For tests, you can only attach one workout')
|
errors.append('For tests, you can only attach one workout')
|
||||||
return result,comments,errors
|
return result,comments,errors
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user