Skip to content

Commit

Permalink
fix is:due search
Browse files Browse the repository at this point in the history
  • Loading branch information
dae committed Apr 1, 2020
1 parent c68a2fc commit 70a1992
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rslib/src/search/sqlwriter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 70a1992

Please sign in to comment.