mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
must set odue to zero when removing failed
This commit is contained in:
parent
d359a600d9
commit
47e8e3d718
1 changed files with 2 additions and 1 deletions
|
@ -549,7 +549,7 @@ limit %d""" % (self._deckLimit(), self.reportLimit), lim=self.dayCutoff)
|
|||
extra += " and odue <= %d" % self.today
|
||||
self.col.db.execute("""
|
||||
update cards set
|
||||
due = odue, queue = 2, mod = %d, usn = %d
|
||||
due = odue, queue = 2, mod = %d, usn = %d, odue = 0
|
||||
where queue = 1 and type = 2
|
||||
%s
|
||||
""" % (intTime(), self.col.usn(), extra))
|
||||
|
@ -848,6 +848,7 @@ did = ?, queue = %s, due = ?, mod = ?, usn = ? where id = ?""" % queue, data)
|
|||
card.due = card.odue
|
||||
if card.odid:
|
||||
card.did = card.odid
|
||||
card.odue = card.odid = 0
|
||||
card.queue = -1
|
||||
# notify UI
|
||||
runHook("leech", card)
|
||||
|
|
Loading…
Reference in a new issue