when undoing, update daily limits

This commit is contained in:
Damien Elmes 2012-01-24 23:38:58 +09:00
parent be8bec5bc4
commit 58935afba7

View file

@ -563,6 +563,10 @@ where c.nid == f.id
"select id from revlog where cid = ? "
"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?
type = ("new", "lrn", "rev")[c.queue]
self.sched._updateStats(c, type, -1)
def _markOp(self, name):
"Call via .save()"