mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
Fix sparse today stats
Not safe to assume revlog is ordered by query
This commit is contained in:
parent
bc6975973e
commit
8206f39bdc
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ impl GraphsContext {
|
|||
let start_of_today_ms = self.next_day_start.adding_secs(-86_400).as_millis().0;
|
||||
for review in self.revlog.iter().rev() {
|
||||
if review.id.0 < start_of_today_ms {
|
||||
break;
|
||||
continue;
|
||||
}
|
||||
if review.review_kind == RevlogReviewKind::Manual {
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue