Private
Public Access
1
0

impeller stuff working, need beta testers

This commit is contained in:
Sander Roosendaal
2021-04-07 11:36:38 +02:00
parent 13af1d3d71
commit 9469fe6200
6 changed files with 75 additions and 9 deletions

View File

@@ -4859,8 +4859,6 @@ def workout_upload_api(request):
message = {'status':'false','message':'this view cannot be accessed through GET'}
return JSONResponse(status=403,data=message)
# test if JSON
try:
json_data = json.loads(request.body)
@@ -4939,6 +4937,22 @@ def workout_upload_api(request):
except KeyError:
startdatetime = ''
try:
oarlockfirmware = post_data['oarlockfirmware']
except:
oarlockfirmware = None
try:
inboard = post_data['inboard']
except:
inboard = None
try:
oarlength = post_data['oarlength']
except:
oarlength = None
r = None
if form.is_valid():
t = form.cleaned_data['title']
@@ -5011,6 +5025,9 @@ def workout_upload_api(request):
notes=notes,
uploadoptions=post_data,
startdatetime=startdatetime,
oarlockfirmware=oarlockfirmware,
inboard=inboard,
oarlength=oarlength,
)
if id == 0: