From fa13c0cc207a9c06e8d31ac5c65918d0e2bef05e Mon Sep 17 00:00:00 2001 From: Arthur Milchior Date: Sun, 27 Sep 2020 08:14:16 +0200 Subject: [PATCH] NF: uses consts in col --- pylib/anki/collection.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pylib/anki/collection.py b/pylib/anki/collection.py index cf39340e8..8a2400a11 100644 --- a/pylib/anki/collection.py +++ b/pylib/anki/collection.py @@ -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