mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 16:26:40 -04:00
Change "between 1 and 4" to "> 0"
This commit is contained in:
parent
c0ec21b139
commit
9f7170ac0f
1 changed files with 2 additions and 2 deletions
|
@ -226,7 +226,7 @@ impl SqlWriter<'_> {
|
||||||
|
|
||||||
match ease {
|
match ease {
|
||||||
EaseKind::AnswerButton(u) => write!(self.sql, " and ease = {})", u),
|
EaseKind::AnswerButton(u) => write!(self.sql, " and ease = {})", u),
|
||||||
EaseKind::AnyAnswerButton => write!(self.sql, " and ease between 1 and 4)"),
|
EaseKind::AnyAnswerButton => write!(self.sql, " and ease > 0)"),
|
||||||
EaseKind::ManualReschedule => write!(self.sql, " and ease = 0)"),
|
EaseKind::ManualReschedule => write!(self.sql, " and ease = 0)"),
|
||||||
}
|
}
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
@ -719,7 +719,7 @@ mod test {
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
s(ctx, "rated:2").0,
|
s(ctx, "rated:2").0,
|
||||||
format!(
|
format!(
|
||||||
"(c.id in (select cid from revlog where id>{} and ease between 1 and 4))",
|
"(c.id in (select cid from revlog where id>{} and ease > 0))",
|
||||||
(timing.next_day_at - (86_400 * 2)) * 1_000
|
(timing.next_day_at - (86_400 * 2)) * 1_000
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue