user-tie replaced with user-chart for Self Coach
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user