mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Remove dependency on simplejson package.
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
|
||||
"""Implements the pgAgent Jobs Node"""
|
||||
from functools import wraps
|
||||
import simplejson as json
|
||||
import json
|
||||
from datetime import datetime, time
|
||||
|
||||
from flask import render_template, request, jsonify
|
||||
@@ -407,7 +407,7 @@ SELECT EXISTS(
|
||||
|
||||
if jid is None:
|
||||
data = request.form if request.form else json.loads(
|
||||
request.data, encoding='utf-8'
|
||||
request.data
|
||||
)
|
||||
else:
|
||||
data = {'ids': [jid]}
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
"""Implements pgAgent Job Schedule Node"""
|
||||
|
||||
import simplejson as json
|
||||
import json
|
||||
from functools import wraps
|
||||
|
||||
from flask import render_template, request, jsonify
|
||||
@@ -341,7 +341,7 @@ class JobScheduleView(PGChildNodeView):
|
||||
sid: Server ID
|
||||
jid: Job ID
|
||||
"""
|
||||
data = json.loads(request.data, encoding='utf-8')
|
||||
data = json.loads(request.data)
|
||||
# convert python list literal to postgres array literal.
|
||||
format_schedule_data(data)
|
||||
|
||||
@@ -460,7 +460,7 @@ class JobScheduleView(PGChildNodeView):
|
||||
|
||||
if jscid is None:
|
||||
data = request.form if request.form else json.loads(
|
||||
request.data, encoding='utf-8'
|
||||
request.data
|
||||
)
|
||||
else:
|
||||
data = {'ids': [jscid]}
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#
|
||||
##########################################################################
|
||||
from unittest.mock import patch
|
||||
import simplejson as json
|
||||
import json
|
||||
import uuid
|
||||
from pgadmin.utils.route import BaseTestGenerator
|
||||
from regression.python_test_utils import test_utils as utils
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
"""Implements pgAgent Job Step Node"""
|
||||
|
||||
import simplejson as json
|
||||
import json
|
||||
from functools import wraps
|
||||
|
||||
from flask import render_template, request, jsonify
|
||||
@@ -480,7 +480,7 @@ SELECT EXISTS(
|
||||
|
||||
if jstid is None:
|
||||
data = request.form if request.form else json.loads(
|
||||
request.data, encoding='utf-8'
|
||||
request.data
|
||||
)
|
||||
else:
|
||||
data = {'ids': [jstid]}
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
##########################################################################
|
||||
from unittest.mock import patch
|
||||
|
||||
import simplejson as json
|
||||
import json
|
||||
import uuid
|
||||
from pgadmin.utils.route import BaseTestGenerator
|
||||
from regression.python_test_utils import test_utils as utils
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
##########################################################################
|
||||
from unittest.mock import patch
|
||||
|
||||
import simplejson as json
|
||||
import json
|
||||
import uuid
|
||||
from pgadmin.utils.route import BaseTestGenerator
|
||||
from regression.python_test_utils import test_utils as utils
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
##########################################################################
|
||||
from unittest.mock import patch
|
||||
|
||||
import simplejson as json
|
||||
import json
|
||||
import uuid
|
||||
from pgadmin.utils.route import BaseTestGenerator
|
||||
from regression.python_test_utils import test_utils as utils
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
##########################################################################
|
||||
from unittest.mock import patch
|
||||
|
||||
import simplejson as json
|
||||
import json
|
||||
import uuid
|
||||
from pgadmin.utils.route import BaseTestGenerator
|
||||
from regression.python_test_utils import test_utils as utils
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
##########################################################################
|
||||
from unittest.mock import patch
|
||||
|
||||
import simplejson as json
|
||||
import json
|
||||
import uuid
|
||||
from pgadmin.utils.route import BaseTestGenerator
|
||||
from regression.python_test_utils import test_utils as utils
|
||||
|
||||
Reference in New Issue
Block a user