yearning
19 小时以前 e3e6db2d9974588f91ac1567a58fa4846655ce1b
backend/app/import_service.py
@@ -21,6 +21,7 @@
    ImportBatch,
)
from app.sql_parser import find_file_content, rows_from_sql
from app.student_no import generate_student_no
def load_zip_files(zip_bytes: bytes) -> dict[str, bytes]:
@@ -317,6 +318,7 @@
                end_time=r.get("end_time"),
                subject=int(r["subject"]) if r.get("subject") is not None else None,
                import_batch_id=batch.id,
                student_no=generate_student_no(int(r["examinee_id"]), row_exam_id),
            )
            db.add(attempt)