Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2018-09-19 08:27:32 +02:00
parent 0e005600cd
commit a099aea328
2 changed files with 7 additions and 13 deletions

View File

@@ -12728,13 +12728,7 @@ def plannedsession_teamcreate_view(request,timeperiod='thisweek',
startdate,enddate = get_dates_timeperiod(timeperiod)
try:
trainingplan = TrainingPlan.objects.filter(
startdate__lte = startdate,
rower = r,
enddate__gte = enddate)[0]
except IndexError:
trainingplan = None
trainingplan = None
sps = []
for team in teams: