添加下载模板功能
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user