Fix ordering of VACUUM options which changed in PG11. Fixes #3836

While we're at it, fix the JSON handling in the maintenance/backup/restore routes.
This commit is contained in:
Akshay Joshi
2019-01-10 15:29:55 +05:30
committed by Dave Page
parent a8167f0a72
commit 8fb340d23b
5 changed files with 5 additions and 10 deletions

View File

@@ -276,9 +276,7 @@ def create_backup_objects_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')