Modify Sheet struct, add OrphanFile table and db
This commit is contained in:
@@ -87,7 +87,7 @@ fn validate_sheet_files(sheets: Vec<Sheet>, dir: impl AsRef<Path>) -> FileValida
|
||||
.find(|(_, sheet)| sheet.validate_path(&pdf_file).unwrap_or(false))
|
||||
{
|
||||
let mut sheet = invalidated_sheets.remove(i);
|
||||
sheet.path = pdf_file.to_str().unwrap().to_string();
|
||||
sheet.path = pdf_file;
|
||||
updated_sheets.push(sheet);
|
||||
} else {
|
||||
unassigned_files.push(pdf_file);
|
||||
|
Reference in New Issue
Block a user