diff --git a/anki/sched.py b/anki/sched.py index 475b47b87..150ea327b 100644 --- a/anki/sched.py +++ b/anki/sched.py @@ -105,13 +105,14 @@ order by due""" % self._groupLimit(), "A very rough estimate of time to review." (cnt, sum) = self.deck.db.first(""" select count(), sum(taken) from (select * from revlog -order by time desc limit 100)""") +order by time desc limit 10)""") if not cnt: return 0 avg = sum / float(cnt) c = self.counts() - # Here we just assume new/lrn will require 3x the number of reviews. A - # more complex solution can be added in the future. + # Here we just assume new/lrn will require 3x the number of reviews. + # To improve on this we'll need to make grade count down so we can get + # a decent picture of required steps. return (avg*c[0]*3 + avg*c[1]*3 + avg*c[2]) / 1000.0 # Counts