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": {