Private
Public Access
1
0

some connection with the lisp server, commit 2

This commit is contained in:
2025-05-07 20:50:59 +02:00
parent 237e52f9ab
commit e24b2f0d4a
6 changed files with 78 additions and 38 deletions

View File

@@ -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: