some connection with the lisp server, commit 2
This commit is contained in:
@@ -1089,11 +1089,11 @@ def correct_intensity(workout):
|
||||
return workout
|
||||
|
||||
|
||||
def create_next_week_from_json(plansteps, rower, planbyrscore=False, plan=None,):
|
||||
def create_next_week_from_json(plansteps, rower, planbyrscore=False, plan=None,
|
||||
startdate=timezone.now()-timezone.timedelta(days=timezone.now().weekday())+timezone.timedelta(days=7)):
|
||||
trainingdays = plansteps['cycles']
|
||||
# start date is the first day of the following week
|
||||
today = timezone.now()
|
||||
startdate = today - timezone.timedelta(days=today.weekday())+timezone.timedelta(days=7)
|
||||
|
||||
ndays = 0
|
||||
for day in trainingdays:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user