Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2022-04-07 16:48:30 +02:00
parent cad9e6ab77
commit bd3da60c28
3 changed files with 15 additions and 4 deletions

View File

@@ -3004,9 +3004,16 @@ 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')
else:
filename = ''
sport = 'rowing'
steps = {
"filename": ps.steps['filename'],
"sport": ps.steps['sport'],
"filename": filename,
"sport": sport,
"steps": []
}