From 1675d2f01e3eebcf2a3d14131f5d679607edc4bd Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 4 Feb 2019 14:33:53 +1000 Subject: [PATCH] fix due column as well in db check --- anki/collection.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/anki/collection.py b/anki/collection.py index b2f26c97e..caa1adff5 100644 --- a/anki/collection.py +++ b/anki/collection.py @@ -855,6 +855,9 @@ and type = 0""", intTime(), self.usn()) curs.execute("update cards set ivl=round(ivl) where ivl!=round(ivl)") if curs.rowcount: problems.append("Fixed %d cards with v2 scheduler decimal interval bug." % curs.rowcount) + curs.execute("update cards set due=round(due) where due!=round(due)") + if curs.rowcount: + problems.append("Fixed %d cards with v2 scheduler decimal due bug." % curs.rowcount) # and finally, optimize self.optimize() newSize = os.stat(self.path)[stat.ST_SIZE]