更改结构

This commit is contained in:
cantyonion committed 2025-05-31 16:36:34 +08:00
1 parent 75750180cc
commit 24c1dc6d59
7 files changed
+6 -14

No files matched your search

View File
Whitespace-only changes.
@@ -13,7 +13,7 @@ from docx.shared import Pt, Cm
from docx.text.run import Run from docx.text.run import Run
from module import LOGLEVEL from module import LOGLEVEL
from module.achievement_excel import ExcelReader from module.achievement.excel import ExcelReader
class DocxWriter: class DocxWriter:
File renamed without changes.
View File
Whitespace-only changes.
+2 -10
View File
@@ -4,7 +4,7 @@ from copy import deepcopy
from docx import Document from docx import Document
from docx.shared import Cm from docx.shared import Cm
from module.schema import Course, Student, Question from module.schema import Course, Student
class DocPaper: class DocPaper:
@@ -51,12 +51,4 @@ class DocPaper:
if __name__ == '__main__': if __name__ == '__main__':
course = Course.load_from_xls('../files/21工程管理-工程造价Ⅱ-点名册-系统0828.xlsx') ...
students = Student.load_from_xls('../files/21工程管理-工程造价Ⅱ-点名册-系统0828.xlsx')
questions = Question.load_from_csv()
d = DocPaper()
for student in students:
student.pick_question(questions)
d.add_paper(course, student)
d.save()
View File
Whitespace-only changes.
+3 -3
View File
@@ -4,9 +4,9 @@ import traceback
from PySide6.QtCore import QObject, Signal from PySide6.QtCore import QObject, Signal
from win32com import client from win32com import client
from module.achievement_doc import DocxWriter from module.achievement.doc import DocxWriter
from module.achievement_excel import ExcelReader from module.achievement.excel import ExcelReader
from module.doc import DocPaper from module.defense.doc import DocPaper
from module.schema import Course, Student, Question from module.schema import Course, Student, Question
from utils.function import resource_path from utils.function import resource_path