Remove dependency on simplejson package.

This commit is contained in:
Matěj Cepl
2023-02-15 11:10:12 +05:30
committed by GitHub
parent d8c5bc4320
commit 7a4951f211
87 changed files with 311 additions and 319 deletions
+2 -2
View File
@@ -8,7 +8,7 @@
##########################################################################
"""A blueprint module implementing the erd tool."""
import simplejson as json
import json
from flask import url_for, request, Response
from flask import render_template, current_app as app
@@ -615,7 +615,7 @@ def translate_foreign_keys(tab_fks, tab_data, all_nodes):
endpoint='sql')
@login_required
def sql(trans_id, sgid, sid, did):
data = json.loads(request.data, encoding='utf-8')
data = json.loads(request.data)
with_drop = False
if request.args and 'with_drop' in request.args:
with_drop = True if request.args.get('with_drop') == 'true' else False