Don't treat manually scheduled cards with no reps as new cards (#3727)

Complements the change in https://github.com/ankitects/anki/pull/3639, ensuring that scheduler and rescheduling produce the same results.
This commit is contained in:
user1823 2025-01-17 10:18:41 +05:30 committed by GitHub
parent d153ce9241
commit c35237c94d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -189,7 +189,7 @@ impl Card {
) -> Result<()> {
let memory_state = if let Some(i) = item {
Some(fsrs.memory_state(i.item, i.starting_state)?)
} else if self.ctype == CardType::New || self.interval == 0 || self.reps == 0 {
} else if self.ctype == CardType::New || self.interval == 0 {
None
} else {
// no valid revlog entries; infer state from current card state