adding instantplan to admin
This commit is contained in:
@@ -2530,11 +2530,15 @@ def rower_view_instantplan(request, id='', userid=0):
|
||||
|
||||
trainingdays = plansteps['trainingDays']
|
||||
|
||||
|
||||
|
||||
trainingdays2 = []
|
||||
nextday = trainingdays.pop(0)
|
||||
|
||||
for i in range(plansteps['duration']):
|
||||
if nextday['order'] == i+1:
|
||||
nextday['week'] = (divmod(i, 7)[0])+1
|
||||
|
||||
trainingdays2.append(nextday)
|
||||
try:
|
||||
nextday = trainingdays.pop(0)
|
||||
@@ -2549,6 +2553,7 @@ def rower_view_instantplan(request, id='', userid=0):
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
targets = TrainingTarget.objects.filter(
|
||||
rowers=r,
|
||||
date__gte=timezone.now(),
|
||||
|
||||
Reference in New Issue
Block a user