Merge branch 'hotfix/v8.37'
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
|
||||
|
||||
@@ -155,7 +155,7 @@
|
||||
{% elif user.rower.rowerplan == 'coach' %}
|
||||
<i class="fas fa-users "></i>
|
||||
{% elif user.rower.rowerplan == 'plan' %}
|
||||
<i class="fas fa-user-tie "></i>
|
||||
<i class="fas fa-user-chart "></i>
|
||||
{% else %}
|
||||
<a href="/rowers/me/edit" title="Profile">
|
||||
<i class="fas fa-user"></i>
|
||||
|
||||
Reference in New Issue
Block a user