show (end) when exiting with resched=off

This commit is contained in:
Damien Elmes 2013-02-01 00:22:26 +09:00
parent cee9b2efd9
commit 71bc925e8b
2 changed files with 2 additions and 2 deletions

View file

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

View file

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