Skip to content

Commit 251153f

Browse files
committed
Fix attendance sheet filtering
This bug was introduced in aa0d578 - it used to continue out of an outer loop to the next sheet, but now the continue just skips to the next row. This function now handles just one sheet, so if a sheet is not a register sheet, just return immediately.
1 parent b7f0de4 commit 251153f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/register.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ fn read_module(
105105
for (row_number, cells) in sheet_data.into_iter().enumerate() {
106106
// Some sheets have documentation or pivot table
107107
if row_number == 0 && !cells.is_empty() && cell_string(&cells[0]) != "Name" {
108-
continue;
108+
return Ok(sprints);
109109
}
110110
if cells.len() < 7 {
111111
return Err(anyhow::anyhow!(

0 commit comments

Comments
 (0)