also working for non oarlock workouts now - still naive implementation
This commit is contained in:
@@ -4870,6 +4870,7 @@ def workout_upload_api(request):
|
||||
q = request.POST
|
||||
post_data = {k: q.getlist(k) if len(q.getlist(k))>1 else v for k, v in q.items()}
|
||||
|
||||
|
||||
# only allow local host
|
||||
hostt = request.get_host().split(':')
|
||||
if hostt[0] not in ['localhost','127.0.0.1','dev.rowsandall.com','rowsandall.com']:
|
||||
@@ -4916,6 +4917,12 @@ def workout_upload_api(request):
|
||||
except KeyError:
|
||||
c2id = ''
|
||||
|
||||
try:
|
||||
nkid = post_data['nkid']
|
||||
except KeyError:
|
||||
nkid = ''
|
||||
|
||||
|
||||
try:
|
||||
rp3id = post_data['rp3id']
|
||||
except KeyError:
|
||||
|
||||
Reference in New Issue
Block a user