Skip to content

Commit

Permalink
Limits # of alternatives
Browse files Browse the repository at this point in the history
  • Loading branch information
bennekrouf committed Jan 7, 2024
1 parent f5b41d3 commit c6a5876
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/domain/exercise/generate_one_exercise.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ pub fn generate_one_exercise(dbs: &Database, exercise: &mut ExerciseOutput, exer
_ => unimplemented!(),
}
}).filter(|alt| alt.verse != Some(valid_verse.verse.clone())));

alternatives.truncate(4);
// Add the correct answer
// let valid_verse = exercise.verses.get(valid_verse_index).unwrap();
// alternatives.push(Alternative { verse: Some(valid_verse.verse.clone()) });
Expand Down

0 comments on commit c6a5876

Please sign in to comment.