From ee7945ab45ead2bc41c2958fe335a5e50a046a19 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 21 Jun 2026 17:07:45 +0200 Subject: [PATCH] Fix off-by-one chapter number in the dashboard TOC ExerciseProgress.number added 1 to ex.number, but ex.number is already the 1-based display ordinal (assigned in scan_dir). That made the dashboard/admin/team chapter lists show a number one higher than the exercise pages and the chapter picker, which use ex.number directly. Drop the spurious + 1 so all of them agree. --- src/bin/server.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/server.rs b/src/bin/server.rs index 1b914ce..6448412 100644 --- a/src/bin/server.rs +++ b/src/bin/server.rs @@ -2858,7 +2858,7 @@ async fn get_exercise_progress<'a>( }; exercises.push(ExerciseProgress { - number: ex.number + 1, + number: ex.number, name: ex.file_stem.clone(), completed, perfected,