Merge pull request #770 from Arthur-Milchior/const_in_col

NF: uses consts in col
This commit is contained in:
Damien Elmes 2020-09-28 08:24:04 +10:00 committed by GitHub
commit 1b265f8024
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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