started with StrokeData POST
This commit is contained in:
@@ -4467,10 +4467,19 @@ def strokedatajson(request,id):
|
||||
try:
|
||||
id = int(id)
|
||||
except ValueError:
|
||||
return HttpRespone("Not a valid workout number")
|
||||
return HttpResponse("Not a valid workout number")
|
||||
|
||||
|
||||
if request.method == 'GET':
|
||||
columns = ['spm','timesecs','hr','pseconds','power','distance']
|
||||
datadf = dataprep.getsmallrowdata_db(columns,ids=[id])
|
||||
return JSONResponse(datadf)
|
||||
|
||||
if request.method == 'POST':
|
||||
strokedata = request.POST['strokedata']
|
||||
# checking/validating and cleaning
|
||||
|
||||
# mangling
|
||||
|
||||
#
|
||||
return HttpResponse("OK")
|
||||
|
||||
Reference in New Issue
Block a user