From dd8a4955d87a058895ab7a1f9dd9b5f50ea571fb Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Thu, 31 Oct 2019 19:22:09 +0100 Subject: [PATCH] bug fix --- rowers/plannedsessions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rowers/plannedsessions.py b/rowers/plannedsessions.py index 29cceb11..ce71c7c8 100644 --- a/rowers/plannedsessions.py +++ b/rowers/plannedsessions.py @@ -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