mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 05:52:22 -04:00
Fix LRT database check for cards with no usable reviews (#4284)
Fixes https://forums.ankiweb.net/t/anki-25-08-beta-3/64738/62
This commit is contained in:
parent
542c557404
commit
3b33d20849
1 changed files with 3 additions and 1 deletions
|
@ -403,7 +403,9 @@ impl super::SqliteStorage {
|
|||
let last_revlog_info = get_last_revlog_info(&revlog);
|
||||
for (card_id, last_revlog_info) in last_revlog_info {
|
||||
let card = self.get_card(card_id)?;
|
||||
if let Some(mut card) = card {
|
||||
if last_revlog_info.last_reviewed_at.is_none() {
|
||||
continue;
|
||||
} else if let Some(mut card) = card {
|
||||
if card.ctype != CardType::New && card.last_review_time.is_none() {
|
||||
card.last_review_time = last_revlog_info.last_reviewed_at;
|
||||
self.update_card(&card)?;
|
||||
|
|
Loading…
Reference in a new issue