mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 14:17:13 -05:00
fix due column as well in db check
This commit is contained in:
parent
86fb47d49d
commit
1675d2f01e
1 changed files with 3 additions and 0 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in a new issue