diff --git a/anki/sched.py b/anki/sched.py index 2eb9dd2ed..ffd4d6f54 100644 --- a/anki/sched.py +++ b/anki/sched.py @@ -1188,7 +1188,7 @@ To study outside of the normal schedule, click the Custom Study button below.""" "Return the next interval for CARD as a string." ivl = self.nextIvl(card, ease) if not ivl: - return "" + return _("(end)") s = fmtTimeSpan(ivl, short=short) if ivl < self.col.conf['collapseTime']: s = "<"+s diff --git a/tests/test_sched.py b/tests/test_sched.py index b4c8332a6..70d38663b 100644 --- a/tests/test_sched.py +++ b/tests/test_sched.py @@ -682,7 +682,7 @@ def test_cram_resched(): assert ni(c, 1) == 60 assert ni(c, 2) == 600 assert ni(c, 3) == 0 - assert d.sched.nextIvlStr(c, 3) == "" + assert d.sched.nextIvlStr(c, 3) == "(end)" d.sched.answerCard(c, 3) assert c.queue == c.type == 0 # undue reviews should also be unaffected