Fixed an issue while creating export job. Fixes #3856

This commit is contained in:
Aditya Toshniwal
2019-01-08 13:02:29 +05:30
committed by Akshay Joshi
parent 11870006c3
commit 3c7742f3b2
2 changed files with 3 additions and 4 deletions

View File

@@ -206,9 +206,7 @@ def create_import_export_job(sid):
None
"""
if request.form:
# Convert ImmutableDict to dict
data = dict(request.form)
data = json.loads(data['data'][0], encoding='utf-8')
data = json.loads(request.form['data'], encoding='utf-8')
else:
data = json.loads(request.data, encoding='utf-8')