From 153c971db6415ec17d59888c28654dfec27f3598 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 26 Jul 2012 13:42:51 +0900 Subject: [PATCH] report intervals below collapse time like "<10m" --- anki/sched.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/anki/sched.py b/anki/sched.py index 3be7fb1cf..f1388f27a 100644 --- a/anki/sched.py +++ b/anki/sched.py @@ -1119,7 +1119,10 @@ your short-term review workload will become.""")) ivl = self.nextIvl(card, ease) if not ivl: return "" - return fmtTimeSpan(ivl, short=short) + s = fmtTimeSpan(ivl, short=short) + if ivl < self.col.conf['collapseTime']: + s = "<"+s + return s def nextIvl(self, card, ease): "Return the next interval for CARD, in seconds."