Increment sched.reps for preview cards in V2 (#1573)

This is to make the timebox dialog report the correct count.
This commit is contained in:
Abdo 2022-01-04 01:56:02 +03:00 committed by GitHub
parent 71e554b1db
commit 35c8449ab2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -462,11 +462,12 @@ limit ?"""
card.flush() card.flush()
def _answerCard(self, card: Card, ease: int) -> None: def _answerCard(self, card: Card, ease: int) -> None:
self.reps += 1
if self._previewingCard(card): if self._previewingCard(card):
self._answerCardPreview(card, ease) self._answerCardPreview(card, ease)
return return
self.reps += 1
card.reps += 1 card.reps += 1
new_delta = 0 new_delta = 0