mirror of
https://github.com/ankitects/anki.git
synced 2025-12-11 05:46:55 -05:00
show (end) when exiting with resched=off
This commit is contained in:
parent
cee9b2efd9
commit
71bc925e8b
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue