From 71bc925e8b033e3fa4173a39083907b15255f0ed Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 1 Feb 2013 00:22:26 +0900 Subject: [PATCH] show (end) when exiting with resched=off --- anki/sched.py | 2 +- tests/test_sched.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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