From 391bf0b283c9ab7b15558b16cb47ce3160dabf0f Mon Sep 17 00:00:00 2001 From: "weiye.wang" Date: Fri, 23 Jun 2023 21:06:04 +0800 Subject: [PATCH] =?UTF-8?q?database=20tools=E4=B8=AD=E5=AF=BC=E5=85=A5?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A2=98=E7=9B=AE=E5=90=8E=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=AD=97=E5=85=B8=E6=8E=92=E5=BA=8F=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 工具/database_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/工具/database_tools.py b/工具/database_tools.py index 7ace4184..9ee6076f 100644 --- a/工具/database_tools.py +++ b/工具/database_tools.py @@ -239,7 +239,7 @@ def ImportRelatedProblems(new_json,main_json): # 导入编辑过的关联题目j pro_dict[id]["related"] += [new_id] pro_dict[new_id]["related"] += [id] print("导入关联题目 %s -> %s 信息成功."%(id,new_id)) - save_dict(pro_dict,main_json) #保存至目标pro_dict文件 + save_dict(dict(sorted(pro_dict.items())),main_json) #保存至目标pro_dict文件 return 0 #正常返回0