mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
when undoing, decr sched.reps
This commit is contained in:
parent
d56a456319
commit
c7547a984f
1 changed files with 1 additions and 1 deletions
|
@ -602,10 +602,10 @@ where c.nid == f.id
|
|||
"order by id desc limit 1", c.id)
|
||||
self.db.execute("delete from revlog where id = ?", last)
|
||||
# and finally, update daily counts
|
||||
# fixme: what to do in cramming case?
|
||||
n = 1 if c.queue == 3 else c.queue
|
||||
type = ("new", "lrn", "rev")[n]
|
||||
self.sched._updateStats(c, type, -1)
|
||||
self.sched.reps -= 1
|
||||
return c.id
|
||||
|
||||
def _markOp(self, name):
|
||||
|
|
Loading…
Reference in a new issue