CardStates rewritten to TableAccessQuerySet
This commit is contained in:
1 parent
45830a7985
commit
068b9c7197
7 files changed
+88
-40
No files matched your search
@@ -145,7 +145,7 @@ impl DeckSettings {
|
||||
}
|
||||
|
||||
#[derive(Clone, PartialEq)]
|
||||
pub struct CardStatistics {
|
||||
pub struct CardState {
|
||||
pub id: Id,
|
||||
pub word_id: Id,
|
||||
pub set_id: Id,
|
||||
@@ -155,7 +155,7 @@ pub struct CardStatistics {
|
||||
pub fsrs_memory: Option<MemoryState>,
|
||||
pub fsrs_open_day: NaiveDate,
|
||||
}
|
||||
impl CardStatistics {
|
||||
impl CardState {
|
||||
pub fn update(&mut self, status: WordOpenMode) {
|
||||
match status {
|
||||
WordOpenMode::Easy => {
|
||||
|
||||
Reference in new issue
Block a user