Skip to content

Commit 7236f06

Browse files
authored
Update image.rs
1 parent 992c6dd commit 7236f06

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src-tauri/src/image.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,11 @@ impl AnswerSheet {
511511
student_id_written,
512512
ocr,
513513
)?;
514+
515+
if student_id.len() == 9 && student_id.starts_with('1') {
516+
student_id.remove(0);
517+
}
518+
514519
if student_id != written_student_id {
515520
//warn!("{} != {} && {} != {}", written_student_id, student_id, written_subject_id, subject_id);
516521
if student_id.len() != 8 && written_student_id.len() == 8 {

0 commit comments

Comments
 (0)