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