mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
Fix/first and latest review dates should only only consider entries with a rating.
This commit is contained in:
parent
04a0b10a15
commit
b0990c102c
1 changed files with 8 additions and 2 deletions
|
@ -76,8 +76,14 @@ impl Collection {
|
|||
note_id: card.note_id.into(),
|
||||
deck: deck.human_name(),
|
||||
added: card.id.as_secs().0,
|
||||
first_review: revlog.first().map(|entry| entry.id.as_secs().0),
|
||||
latest_review: revlog.last().map(|entry| entry.id.as_secs().0),
|
||||
first_review: revlog
|
||||
.iter()
|
||||
.find(|entry| entry.has_rating())
|
||||
.map(|entry| entry.id.as_secs().0),
|
||||
latest_review: revlog
|
||||
.iter()
|
||||
.rfind(|entry| entry.has_rating())
|
||||
.map(|entry| entry.id.as_secs().0),
|
||||
due_date: self.due_date(&card)?,
|
||||
due_position: self.position(&card),
|
||||
interval: card.interval,
|
||||
|
|
Loading…
Reference in a new issue