mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
handle negative due numbers when gathering existing cards
This commit is contained in:
parent
bee0eb1264
commit
5ac3fb5514
1 changed files with 2 additions and 2 deletions
|
@ -17,8 +17,8 @@ select
|
||||||
when 0 then (
|
when 0 then (
|
||||||
case
|
case
|
||||||
odue
|
odue
|
||||||
when 0 then due
|
when 0 then max(0, due)
|
||||||
else odue
|
else max(odue, 0)
|
||||||
end
|
end
|
||||||
)
|
)
|
||||||
else null
|
else null
|
||||||
|
|
Loading…
Reference in a new issue