mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
when undoing, update daily limits
This commit is contained in:
parent
be8bec5bc4
commit
58935afba7
1 changed files with 4 additions and 0 deletions
|
@ -563,6 +563,10 @@ where c.nid == f.id
|
||||||
"select id from revlog where cid = ? "
|
"select id from revlog where cid = ? "
|
||||||
"order by id desc limit 1", c.id)
|
"order by id desc limit 1", c.id)
|
||||||
self.db.execute("delete from revlog where id = ?", last)
|
self.db.execute("delete from revlog where id = ?", last)
|
||||||
|
# and finally, update daily counts
|
||||||
|
# fixme: what to do in cramming case?
|
||||||
|
type = ("new", "lrn", "rev")[c.queue]
|
||||||
|
self.sched._updateStats(c, type, -1)
|
||||||
|
|
||||||
def _markOp(self, name):
|
def _markOp(self, name):
|
||||||
"Call via .save()"
|
"Call via .save()"
|
||||||
|
|
Loading…
Reference in a new issue