From 45724a047485da7faa18150779806b84ef01af7b Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 20 Sep 2020 10:29:39 +1000 Subject: [PATCH] small learning steps were being stored as a float https://forums.ankiweb.net/t/bug-with-fractional-learning-intervals/3524/5 --- pylib/anki/schedv2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylib/anki/schedv2.py b/pylib/anki/schedv2.py index 1b3660a7d..fd1ea3ead 100644 --- a/pylib/anki/schedv2.py +++ b/pylib/anki/schedv2.py @@ -643,7 +643,7 @@ did = ? and queue = {QUEUE_TYPE_DAY_LEARN_RELEARN} and due <= ? limit ?""", else: # user deleted final step; use dummy value delay = 1 - return delay * 60 + return int(delay * 60) def _delayForRepeatingGrade(self, conf: QueueConfig, left: int) -> Any: # halfway between last and next