mirror of
https://github.com/ankitects/anki.git
synced 2026-01-07 02:53:54 -05:00
Fix: Ignore new cards
This commit is contained in:
parent
fe50593bf9
commit
d2960e1038
1 changed files with 2 additions and 1 deletions
|
|
@ -434,9 +434,10 @@ impl SqlWriter<'_> {
|
|||
let timing = self.col.timing_today()?;
|
||||
(timing.days_elapsed, timing.next_day_at, timing.now)
|
||||
};
|
||||
let new_type = CardType::New as i8;
|
||||
write!(
|
||||
self.sql,
|
||||
"extract_fsrs_retrievability(c.data, case when c.odue !=0 then c.odue else c.due end, c.ivl, {elap}, {next_day_at}, {now}) {op} {r}"
|
||||
"case when c.type = {new_type} then false else (extract_fsrs_retrievability(c.data, case when c.odue !=0 then c.odue else c.due end, c.ivl, {elap}, {next_day_at}, {now}) {op} {r}) end"
|
||||
)
|
||||
.unwrap()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue