Fixing incorrect history reading bug

This commit is contained in:
micialware committed 2026-09-14 19:41:02 +03:00
1 parent 0e867a33ce
commit 5d12f3b02a
2 files changed
+6 -2

No files matched your search

+5 -2
View File
@@ -1,5 +1,5 @@
use crate::core::srs::{FADE_PER_DAY, MAX_SCORE, WordOpenMode};
use crate::data::{Id, SmallId, INVALID_ID};
use crate::core::srs::{WordOpenMode, FADE_PER_DAY, MAX_SCORE};
use crate::data::{Id, INVALID_ID};
use crate::data_provider::history::HistoryRepositoryInner;
use chrono::{DateTime, Local, NaiveDate, Utc};
use fsrs::MemoryState;
@@ -101,6 +101,9 @@ impl HistoryRepositoryInner {
count = 0;
}
}
if count != 0 {
counts.push((date, count));
}
}
counts
}
+1
View File
@@ -96,6 +96,7 @@ impl NavigatedPage<RepetitionsMessage> for RepetitionsState {
} else {
self.fill_deck_word_indices();
}
_ = self.state.history.write().reload()
}
fn update(&mut self, message: RepetitionsMessage) -> Task<RootMessage> {
match message {