Repetitions remake #1

Merged
micialware merged 30 commits from repetitions-remake into master 2026-08-20 19:48:19 +03:00
2 changed files with 4 additions and 2 deletions
Showing only changes of commit e8c9e37ca1 - Show all commits

No files matched your search

+3 -1
View File
@@ -17,7 +17,9 @@ pub fn create_db() {
}
}
fn ensure_db_schema(_: &Connection) {}
fn ensure_db_schema(connection: &Connection) {
}
fn create_tables(conn: &Connection) {
make_card_set(conn).unwrap();
+1 -1
View File
@@ -542,7 +542,7 @@ impl SRSModule for SemiRandomSRSModule {
fn next(&mut self, set: &mut DeckData) -> usize {
let index = self.last_weights.sample(&mut self.generator);
if self.history.contains(&index) {
if self.history.contains(&index) && self.history.len() != 1 {
return self.next(set);
}