Include PreviewRepeat cards in is:due

This commit is contained in:
Henrik Giesel 2021-01-07 17:24:10 +01:00
parent 7b14449df4
commit 795dcab370

View file

@ -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),