small learning steps were being stored as a float

https://forums.ankiweb.net/t/bug-with-fractional-learning-intervals/3524/5
This commit is contained in:
Damien Elmes 2020-09-20 10:29:39 +10:00
parent 755a58b96c
commit 45724a0474

View File

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