diff --git a/工具v4/database_tools_2.py b/工具v4/database_tools_2.py index 8f581b33..4411ba15 100644 --- a/工具v4/database_tools_2.py +++ b/工具v4/database_tools_2.py @@ -2558,8 +2558,8 @@ def GenerateSingleLessonNotefromMariaDB(cursor,id,structuredict,notesdict,templa # if not structure[sectionkey]["spaceflag"] or answered: # content = re.sub(r"\\vspace[\*]?\{[\S]*\}","\n",content) output += content + "\n\n" - if notesdict[id]["remark"] != "": - output += f"\n\n\\newpage\n\n\\section{{备注}}\n\n{notesdict[id]['remark']}\n\n" + if notesdict[id]["remarks"] != "": + output += f"\n\n\\newpage\n\n\\section{{备注}}\n\n{notesdict[id]['remarks']}\n\n" latex_raw = ReadTextFile(templatepath) latex_raw = latex_raw.replace(r"学号\blank{50} \ 姓名\blank{80}","上海市控江中学") #替换掉模板中的姓名学号