mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 05:53:53 -05:00
Update last_review_time assignment to exclude filtered preview state in Card class
This commit is contained in:
parent
aa46765e8d
commit
27b5b72292
1 changed files with 6 additions and 1 deletions
|
|
@ -334,7 +334,12 @@ impl Collection {
|
|||
self.maybe_bury_siblings(&original, &updater.config)?;
|
||||
let timing = updater.timing;
|
||||
let mut card = updater.into_card();
|
||||
card.last_review_time = Some(answer.answered_at.as_secs());
|
||||
if !matches!(
|
||||
answer.current_state,
|
||||
CardState::Filtered(FilteredState::Preview(_))
|
||||
) {
|
||||
card.last_review_time = Some(answer.answered_at.as_secs());
|
||||
}
|
||||
if let Some(data) = answer.custom_data.take() {
|
||||
card.custom_data = data;
|
||||
card.validate_custom_data()?;
|
||||
|
|
|
|||
Loading…
Reference in a new issue