添加下载模板功能

This commit is contained in:
2025-06-29 00:06:47 +08:00
parent 9d703212ef
commit 375ea9a686
16 changed files with 143 additions and 20 deletions

View File

@@ -42,7 +42,7 @@ class DTGWorker(QObject):
max_question_count = math.ceil(len(students) * 3 / len(questions))
d = DocPaper(self.output_filename, template_path=resource_path("template/template-2.docx"))
d = DocPaper(self.output_filename, resource_path("template/template-defense-paper-paper.docx"))
for index, student in enumerate(students):
if (p := int((index + 1) / len(students) * 100)) != 100:
self.progress[int].emit(p)