Skip to content

Commit

Permalink
Merge pull request #1753 from danieltinazzi/main
Browse files Browse the repository at this point in the history
Fix progress bar
  • Loading branch information
shadows-withal authored Nov 6, 2023
2 parents 02b1b5f + 3181d9f commit fb32761
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,10 @@ fn watch(
.iter()
.filter(|e| !e.looks_done() && !filepath.ends_with(&e.path)),
);
let num_done = exercises.iter().filter(|e| e.looks_done()).count();
let num_done = exercises
.iter()
.filter(|e| e.looks_done() && !filepath.ends_with(&e.path))
.count();
clear_screen();
match verify(
pending_exercises,
Expand Down

0 comments on commit fb32761

Please sign in to comment.