From 35c8449ab27b5bbf0ee8f6b3fde04a9ad63a4dc1 Mon Sep 17 00:00:00 2001 From: Abdo Date: Tue, 4 Jan 2022 01:56:02 +0300 Subject: [PATCH] Increment sched.reps for preview cards in V2 (#1573) This is to make the timebox dialog report the correct count. --- pylib/anki/scheduler/v2.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pylib/anki/scheduler/v2.py b/pylib/anki/scheduler/v2.py index f2cb37228..ecfd90236 100644 --- a/pylib/anki/scheduler/v2.py +++ b/pylib/anki/scheduler/v2.py @@ -462,11 +462,12 @@ limit ?""" card.flush() def _answerCard(self, card: Card, ease: int) -> None: + self.reps += 1 + if self._previewingCard(card): self._answerCardPreview(card, ease) return - self.reps += 1 card.reps += 1 new_delta = 0