mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 23:12:21 -04:00
return the restored card when undoing a review
This commit is contained in:
parent
030e5498b3
commit
f6f6649062
1 changed files with 2 additions and 1 deletions
|
@ -539,7 +539,7 @@ where c.nid == f.id
|
||||||
|
|
||||||
def undo(self):
|
def undo(self):
|
||||||
if self._undo[0] == 1:
|
if self._undo[0] == 1:
|
||||||
self._undoReview()
|
return self._undoReview()
|
||||||
else:
|
else:
|
||||||
self._undoOp()
|
self._undoOp()
|
||||||
|
|
||||||
|
@ -567,6 +567,7 @@ where c.nid == f.id
|
||||||
# fixme: what to do in cramming case?
|
# fixme: what to do in cramming case?
|
||||||
type = ("new", "lrn", "rev")[c.queue]
|
type = ("new", "lrn", "rev")[c.queue]
|
||||||
self.sched._updateStats(c, type, -1)
|
self.sched._updateStats(c, type, -1)
|
||||||
|
return c.id
|
||||||
|
|
||||||
def _markOp(self, name):
|
def _markOp(self, name):
|
||||||
"Call via .save()"
|
"Call via .save()"
|
||||||
|
|
Loading…
Reference in a new issue