fix bug
This commit is contained in:
@@ -1043,7 +1043,7 @@ def get_workouts_session(r,ps):
|
||||
|
||||
return ws
|
||||
|
||||
def create_sessions_from_json(plansteps,athletes,startdate,manager):
|
||||
def create_sessions_from_json(plansteps,rower,startdate,manager):
|
||||
trainingdays = plansteps['trainingDays']
|
||||
for day in trainingdays:
|
||||
for workout in day['workouts']:
|
||||
@@ -1067,8 +1067,7 @@ def create_sessions_from_json(plansteps,athletes,startdate,manager):
|
||||
|
||||
ps.save()
|
||||
|
||||
for athlete in athletes:
|
||||
add_rower_session(athlete,ps)
|
||||
add_rower_session(rower,ps)
|
||||
|
||||
def update_plannedsession(ps,cd):
|
||||
for attr, value in cd.items():
|
||||
|
||||
Reference in New Issue
Block a user