fix is:due search

This commit is contained in:
Damien Elmes 2020-04-02 09:33:05 +10:00
parent c68a2fc838
commit 70a1992f70

View file

@ -192,9 +192,10 @@ impl SqlWriter<'_> {
StateKind::Suspended => write!(self.sql, "c.queue = {}", CardQueue::Suspended as i8),
StateKind::Due => write!(
self.sql,
"
"(
(c.queue in ({rev},{daylrn}) and c.due <= {today}) or
(c.queue = {lrn} and c.due <= {daycutoff})",
(c.queue = {lrn} and c.due <= {daycutoff})
)",
rev = CardQueue::Review as i8,
daylrn = CardQueue::DayLearn as i8,
today = timing.days_elapsed,