From 8220d2fab253a9d3a69ebe9625ddc85b10b3d214 Mon Sep 17 00:00:00 2001 From: "weiye.wang" Date: Sun, 7 Apr 2024 20:00:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9F=BA=E6=9C=AC=E5=B7=B2=E5=A4=84=E7=90=86?= =?UTF-8?q?=E4=BA=86=E7=9B=AE=E5=89=8D=E5=9C=A8=E7=94=A8=E7=9A=84=E6=89=80?= =?UTF-8?q?=E6=9C=89=E4=B8=8Eorigin=E5=AD=97=E6=AE=B5=E6=9C=89=E5=85=B3?= =?UTF-8?q?=E7=9A=84=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 工具v2/database_tools.py | 2 +- 题库0.3/ProblemFields.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/工具v2/database_tools.py b/工具v2/database_tools.py index 1caaec21..2ad4a36c 100644 --- a/工具v2/database_tools.py +++ b/工具v2/database_tools.py @@ -1204,7 +1204,7 @@ def generateLaTeXBodyContent(id,adict,objdict,misc): #根据id,读取的json内 usages = f"\n\n使用记录:\n\n{GenerateUsageTexCode(id,adict,misc['字段显示设置']['使用记录'])}\n\n" output += usages if "来源" in misc["字段显示设置"] and misc["字段显示设置"]["来源"] == True: - origin = adict[id]["origin"] if len(adict[id]["origin"]) > 0 else "未记录来源" + origin = generate_origin(adict[id]["origin"]) if len(adict[id]["origin"]) > 0 else "未记录来源" output += f"\n\n来源: {origin}\n\n" return output diff --git a/题库0.3/ProblemFields.json b/题库0.3/ProblemFields.json index fc668cac..06e1e80c 100644 --- a/题库0.3/ProblemFields.json +++ b/题库0.3/ProblemFields.json @@ -46,7 +46,7 @@ }, "origin": { "FieldName": "origin", - "FieldType": "str", + "FieldType": "dict", "Method": "fixed" }, "edit": {