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)