网页获取讲义 显示 讲义备注

This commit is contained in:
wangweiye7840 2024-06-17 11:24:40 +08:00
parent d52868f25e
commit f9023b60a0
1 changed files with 2 additions and 0 deletions

View File

@ -2558,6 +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"
latex_raw = ReadTextFile(templatepath)
latex_raw = latex_raw.replace(r"学号\blank{50} \ 姓名\blank{80}","上海市控江中学") #替换掉模板中的姓名学号