impeller stuff working, need beta testers
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user