|
@@ -116,7 +116,7 @@ def python_to_golang_sync(func_name, other_set = {}):
|
|
|
if other_set == {}:
|
|
if other_set == {}:
|
|
|
other_set = '{}'
|
|
other_set = '{}'
|
|
|
else:
|
|
else:
|
|
|
- other_set = orjson.dumps(other_set)
|
|
|
|
|
|
|
+ other_set = json.dumps(other_set)
|
|
|
|
|
|
|
|
if platform.system() == 'Linux':
|
|
if platform.system() == 'Linux':
|
|
|
if platform.machine() in ["AMD64", "x86_64"]:
|
|
if platform.machine() in ["AMD64", "x86_64"]:
|
|
@@ -158,7 +158,7 @@ async def python_to_golang(func_name, other_set = {}):
|
|
|
if other_set == {}:
|
|
if other_set == {}:
|
|
|
other_set = '{}'
|
|
other_set = '{}'
|
|
|
else:
|
|
else:
|
|
|
- other_set = orjson.dumps(other_set)
|
|
|
|
|
|
|
+ other_set = json.dumps(other_set)
|
|
|
|
|
|
|
|
if platform.system() == 'Linux':
|
|
if platform.system() == 'Linux':
|
|
|
if platform.machine() in ["AMD64", "x86_64"]:
|
|
if platform.machine() in ["AMD64", "x86_64"]:
|
|
@@ -334,7 +334,7 @@ class class_check_json:
|
|
|
set_data['db'] = data_get
|
|
set_data['db'] = data_get
|
|
|
|
|
|
|
|
with open(os.path.join('data', 'set.json'), 'w', encoding = 'utf8') as f:
|
|
with open(os.path.join('data', 'set.json'), 'w', encoding = 'utf8') as f:
|
|
|
- f.write(orjson.dumps(set_data).decode('utf-8'))
|
|
|
|
|
|
|
+ f.write(json.dumps(set_data))
|
|
|
|
|
|
|
|
print('DB name : ' + set_data['db'])
|
|
print('DB name : ' + set_data['db'])
|
|
|
print('DB type : ' + set_data['db_type'])
|
|
print('DB type : ' + set_data['db_type'])
|
|
@@ -383,7 +383,7 @@ class class_check_json:
|
|
|
'w',
|
|
'w',
|
|
|
encoding = 'utf8'
|
|
encoding = 'utf8'
|
|
|
) as f:
|
|
) as f:
|
|
|
- f.write(orjson.dumps(set_data_mysql).decode('utf-8'))
|
|
|
|
|
|
|
+ f.write(json.dumps(set_data_mysql))
|
|
|
|
|
|
|
|
data_db_set['mysql_user'] = set_data_mysql['user']
|
|
data_db_set['mysql_user'] = set_data_mysql['user']
|
|
|
data_db_set['mysql_pw'] = set_data_mysql['password']
|
|
data_db_set['mysql_pw'] = set_data_mysql['password']
|
|
@@ -577,7 +577,7 @@ def update(conn, ver_num, set_data):
|
|
|
sql_data['ua'] = i[7]
|
|
sql_data['ua'] = i[7]
|
|
|
sql_data['email'] = i[8]
|
|
sql_data['email'] = i[8]
|
|
|
|
|
|
|
|
- curs.execute(db_change("insert into user_set (name, id, data) values (?, ?, ?)"), ['application', i[0], orjson.dumps(sql_data).decode('utf-8')])
|
|
|
|
|
|
|
+ curs.execute(db_change("insert into user_set (name, id, data) values (?, ?, ?)"), ['application', i[0], json.dumps(sql_data)])
|
|
|
|
|
|
|
|
if ver_num < 3500105:
|
|
if ver_num < 3500105:
|
|
|
curs.execute(db_change('delete from acl where title like "file:%" and data = "admin" and type like "decu%"'))
|
|
curs.execute(db_change('delete from acl where title like "file:%" and data = "admin" and type like "decu%"'))
|