mirror of
https://github.com/ankitects/anki.git
synced 2025-11-15 00:57:13 -05: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:
|
if ids:
|
||||||
problems.append("Reviews had incorrect due date.")
|
problems.append("Reviews had incorrect due date.")
|
||||||
self.db.execute(
|
self.db.execute(
|
||||||
"update cards set due = 0, mod = ?, usn = ? where id in %s"
|
"update cards set due = ?, ivl = 1, mod = ?, usn = ? where id in %s"
|
||||||
% ids2str(ids), intTime(), self.usn())
|
% ids2str(ids), self.sched.today, intTime(), self.usn())
|
||||||
# and finally, optimize
|
# and finally, optimize
|
||||||
self.optimize()
|
self.optimize()
|
||||||
newSize = os.stat(self.path)[stat.ST_SIZE]
|
newSize = os.stat(self.path)[stat.ST_SIZE]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue