mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
when reviews have incorrect due date, make them due today
https://anki.tenderapp.com/discussions/ankidesktop/19394-strange-behavior-with-year-long-intervals#comment_42510830
This commit is contained in:
parent
22ca4c24de
commit
1dd17e9f3a
1 changed files with 2 additions and 2 deletions
|
@ -798,8 +798,8 @@ and queue = 0""", intTime(), self.usn())
|
|||
if ids:
|
||||
problems.append("Reviews had incorrect due date.")
|
||||
self.db.execute(
|
||||
"update cards set due = 0, mod = ?, usn = ? where id in %s"
|
||||
% ids2str(ids), intTime(), self.usn())
|
||||
"update cards set due = ?, ivl = 1, mod = ?, usn = ? where id in %s"
|
||||
% ids2str(ids), self.sched.today, intTime(), self.usn())
|
||||
# and finally, optimize
|
||||
self.optimize()
|
||||
newSize = os.stat(self.path)[stat.ST_SIZE]
|
||||
|
|
Loading…
Reference in a new issue