mirror of
https://github.com/ankitects/anki.git
synced 2025-12-10 21:36:55 -05:00
Add comment about integer division
This commit is contained in:
parent
04a56209c6
commit
4c570785bb
1 changed files with 1 additions and 0 deletions
|
|
@ -241,6 +241,7 @@ impl SqlWriter<'_> {
|
||||||
let day = days + (timing.days_elapsed as i32);
|
let day = days + (timing.days_elapsed as i32);
|
||||||
write!(
|
write!(
|
||||||
self.sql,
|
self.sql,
|
||||||
|
// SQL does integer division if both parameters are integers
|
||||||
"(\
|
"(\
|
||||||
(c.queue in ({rev},{daylrn}) and c.due {op} {day}) or \
|
(c.queue in ({rev},{daylrn}) and c.due {op} {day}) or \
|
||||||
(c.queue in ({lrn},{previewrepeat}) and ((c.due - {cutoff}) / 86400) {op} {days})\
|
(c.queue in ({lrn},{previewrepeat}) and ((c.due - {cutoff}) / 86400) {op} {days})\
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue