Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2019-10-31 19:22:09 +01:00
parent df80860ed1
commit dd8a4955d8

View File

@@ -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')
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')
return result,comments,errors