fixing more fixes
This commit is contained in:
@@ -5,7 +5,7 @@ from __future__ import unicode_literals
|
|||||||
|
|
||||||
import hashlib
|
import hashlib
|
||||||
from shutil import copyfile
|
from shutil import copyfile
|
||||||
|
from six import iterlists
|
||||||
from rowers.views.statements import *
|
from rowers.views.statements import *
|
||||||
import rowers.teams as teams
|
import rowers.teams as teams
|
||||||
import rowers.mytypes as mytypes
|
import rowers.mytypes as mytypes
|
||||||
@@ -4405,7 +4405,8 @@ def workout_upload_api(request):
|
|||||||
secret = json_data['secret']
|
secret = json_data['secret']
|
||||||
post_data = json_data
|
post_data = json_data
|
||||||
except (KeyError,JSONDecodeError):
|
except (KeyError,JSONDecodeError):
|
||||||
post_data = dict(request.POST.iterlists())
|
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
|
# only allow local host
|
||||||
hostt = request.get_host().split(':')
|
hostt = request.get_host().split(':')
|
||||||
|
|||||||
Reference in New Issue
Block a user