diff --git a/aqt/deckbrowser.py b/aqt/deckbrowser.py index abf9cb8b0..a7688d297 100644 --- a/aqt/deckbrowser.py +++ b/aqt/deckbrowser.py @@ -165,6 +165,8 @@ body { margin: 1em; -webkit-user-select: none; } def nonzeroColour(cnt, colour): if not cnt: colour = "#e0e0e0" + if cnt >= 1000: + cnt = "1000+" return "%s" % (colour, cnt) buf += "%s%s" % ( nonzeroColour(due, "#007700"), diff --git a/aqt/overview.py b/aqt/overview.py index ba2964f87..ba5bedc2a 100644 --- a/aqt/overview.py +++ b/aqt/overview.py @@ -108,8 +108,11 @@ class Overview(object): desc[:160], desc) def _table(self): - counts = self.mw.col.sched.counts() + counts = list(self.mw.col.sched.counts()) finished = not sum(counts) + for n in range(len(counts)): + if counts[n] == 1000: + counts[n] = "1000+" but = self.mw.button if finished: return '
%s
' % (