mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
Merge pull request #908 from hgiesel/easereset
Reset ease to 0 for after rescheduling cards as new
This commit is contained in:
commit
b3c690aa06
1 changed files with 1 additions and 6 deletions
|
@ -4,7 +4,6 @@
|
||||||
use crate::{
|
use crate::{
|
||||||
card::{Card, CardID, CardQueue, CardType},
|
card::{Card, CardID, CardQueue, CardType},
|
||||||
collection::Collection,
|
collection::Collection,
|
||||||
deckconf::INITIAL_EASE_FACTOR_THOUSANDS,
|
|
||||||
decks::DeckID,
|
decks::DeckID,
|
||||||
err::Result,
|
err::Result,
|
||||||
notes::NoteID,
|
notes::NoteID,
|
||||||
|
@ -21,11 +20,7 @@ impl Card {
|
||||||
self.ctype = CardType::New;
|
self.ctype = CardType::New;
|
||||||
self.queue = CardQueue::New;
|
self.queue = CardQueue::New;
|
||||||
self.interval = 0;
|
self.interval = 0;
|
||||||
if self.ease_factor == 0 {
|
self.ease_factor = 0;
|
||||||
// unlike the old Python code, we leave the ease factor alone
|
|
||||||
// if it's already set
|
|
||||||
self.ease_factor = INITIAL_EASE_FACTOR_THOUSANDS;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// If the card is new, change its position.
|
/// If the card is new, change its position.
|
||||||
|
|
Loading…
Reference in a new issue