Private
Public Access
1
0

user-tie replaced with user-chart for Self Coach

This commit is contained in:
Sander Roosendaal
2018-10-30 17:38:23 +01:00
parent 1f4422a7ba
commit 5d56f66729
2 changed files with 5 additions and 3 deletions

View File

@@ -17091,9 +17091,11 @@ def planmesocyclebyweek(request,id=0,userid=0):
#we're still here. We have permission
sundays = [s for s in allsundays(cycle.startdate,cycle.enddate)]
if sundays[-1] < cycle.enddate:
if sundays and sundays[-1] < cycle.enddate:
sundays = sundays+[cycle.enddate]
else:
sundays = [cycle.enddate]
for i in range(len(sundays)):
if i==0:
monday = cycle.startdate