mirror of
https://github.com/ankitects/anki.git
synced 2026-01-05 18:13:56 -05:00
Merge 4355b5d1de into 8f2144534b
This commit is contained in:
commit
61a3e67816
1 changed files with 5 additions and 2 deletions
|
|
@ -13,6 +13,7 @@ use itertools::Itertools;
|
|||
|
||||
use super::params::ignore_revlogs_before_ms_from_config;
|
||||
use super::rescheduler::Rescheduler;
|
||||
use crate::card::CardQueue;
|
||||
use crate::card::CardType;
|
||||
use crate::prelude::*;
|
||||
use crate::revlog::RevlogEntry;
|
||||
|
|
@ -128,8 +129,10 @@ impl Collection {
|
|||
timing.next_day_at.elapsed_days_since(*last_review) as i32;
|
||||
// and the card's not new
|
||||
if let Some(state) = &card.memory_state {
|
||||
// or in (re)learning
|
||||
if card.ctype == CardType::Review {
|
||||
// or in (re)learning and suspended
|
||||
if card.ctype == CardType::Review
|
||||
&& card.queue != CardQueue::Suspended
|
||||
{
|
||||
let deck = self
|
||||
.get_deck(card.original_or_current_deck_id())?
|
||||
.or_not_found(card.original_or_current_deck_id())?;
|
||||
|
|
|
|||
Loading…
Reference in a new issue