Fixing incorrect history reading bug
This commit is contained in:
1 parent
0e867a33ce
commit
5d12f3b02a
2 files changed
+6
-2
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user