mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
fix error undoing card in preview queue
https://anki.tenderapp.com/discussions/ankidesktop/41243-undo-function-causes-error-in-filtered-decks
This commit is contained in:
parent
961833a137
commit
54734ec88e
1 changed files with 1 additions and 1 deletions
|
@ -737,7 +737,7 @@ where c.nid = n.id and c.id in %s group by nid"""
|
||||||
c.nid,
|
c.nid,
|
||||||
)
|
)
|
||||||
# and finally, update daily counts
|
# and finally, update daily counts
|
||||||
n = 1 if c.queue == 3 else c.queue
|
n = 1 if c.queue in (3,4) else c.queue
|
||||||
type = ("new", "lrn", "rev")[n]
|
type = ("new", "lrn", "rev")[n]
|
||||||
self.sched._updateStats(c, type, -1)
|
self.sched._updateStats(c, type, -1)
|
||||||
self.sched.reps -= 1
|
self.sched.reps -= 1
|
||||||
|
|
Loading…
Reference in a new issue