mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -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,
|
||||
)
|
||||
# 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]
|
||||
self.sched._updateStats(c, type, -1)
|
||||
self.sched.reps -= 1
|
||||
|
|
Loading…
Reference in a new issue