mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
NF: uses consts in col
This commit is contained in:
parent
49ebb193cf
commit
7850d2d662
1 changed files with 3 additions and 1 deletions
|
@ -604,7 +604,9 @@ table.review-log {{ {revlog_style} }}
|
||||||
c.nid,
|
c.nid,
|
||||||
)
|
)
|
||||||
# and finally, update daily counts
|
# and finally, update daily counts
|
||||||
n = 1 if c.queue in (3, 4) else c.queue
|
n = c.queue
|
||||||
|
if c.queue in (QUEUE_TYPE_DAY_LEARN_RELEARN, QUEUE_TYPE_PREVIEW):
|
||||||
|
n = QUEUE_TYPE_LRN
|
||||||
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