mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
committed by
Dave Page
parent
166d42953c
commit
06e881570a
@@ -9,7 +9,7 @@
|
||||
|
||||
"""A blueprint module implementing the maintenance tool for vacuum"""
|
||||
|
||||
import json
|
||||
import simplejson as json
|
||||
|
||||
from flask import url_for, Response, render_template, request, current_app
|
||||
from flask_babel import gettext as _
|
||||
@@ -171,9 +171,9 @@ def create_maintenance_job(sid, did):
|
||||
if request.form:
|
||||
# Convert ImmutableDict to dict
|
||||
data = dict(request.form)
|
||||
data = json.loads(data['data'][0])
|
||||
data = json.loads(data['data'][0], encoding='utf-8')
|
||||
else:
|
||||
data = json.loads(request.data.decode())
|
||||
data = json.loads(request.data, encoding='utf-8')
|
||||
|
||||
index_name = None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user