mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
Include PreviewRepeat cards in is:due
This commit is contained in:
parent
7b14449df4
commit
795dcab370
1 changed files with 2 additions and 1 deletions
|
@ -294,12 +294,13 @@ impl SqlWriter<'_> {
|
|||
self.sql,
|
||||
"(
|
||||
(c.queue in ({rev},{daylrn}) and c.due <= {today}) or
|
||||
(c.queue = {lrn} and c.due <= {learncutoff})
|
||||
(c.queue in ({lrn},{previewrepeat}) and c.due <= {learncutoff})
|
||||
)",
|
||||
rev = CardQueue::Review as i8,
|
||||
daylrn = CardQueue::DayLearn as i8,
|
||||
today = timing.days_elapsed,
|
||||
lrn = CardQueue::Learn as i8,
|
||||
previewrepeat = CardQueue::PreviewRepeat as i8,
|
||||
learncutoff = TimestampSecs::now().0 + (self.col.learn_ahead_secs() as i64),
|
||||
),
|
||||
StateKind::UserBuried => write!(self.sql, "c.queue = {}", CardQueue::UserBuried as i8),
|
||||
|
|
Loading…
Reference in a new issue