Private
Public Access
1
0

also working for non oarlock workouts now - still naive implementation

This commit is contained in:
Sander Roosendaal
2021-04-04 19:58:04 +02:00
parent 13391c0e40
commit 6be21a0a8a
3 changed files with 18 additions and 5 deletions

View File

@@ -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: