Private
Public Access
1
0
This commit is contained in:
2025-01-22 20:17:47 +01:00
parent 4cf92155a6
commit 95bc02e122
3 changed files with 176 additions and 164 deletions

View File

@@ -3077,6 +3077,7 @@ def rower_create_trainingplan(request, id=0):
'old_targets': old_targets,
})
@csrf_exempt
@user_passes_test(can_plan, login_url="/rowers/paidplans",
message="This functionality requires a Coach or Self-Coach plan",
redirect_field_name=None)
@@ -3116,6 +3117,7 @@ def stepadder(request, id=0):
'message': 'permission denied for host '+hostt[0]}
return JSONResponse(status=403, data=message)
if ps.steps:
filename = ps.steps.get('filename','')
sport = ps.steps.get('sport','rowing')
@@ -3208,6 +3210,7 @@ def stepedit(request, id=0, psid=0):
ps.fitfile = None
ps.interval_string = ""
ps.save()
step.durationtype = form.cleaned_data['durationtype']