mirror of
https://github.com/ankitects/anki.git
synced 2025-12-10 21:36:55 -05:00
experiment with learning count on deck list
This commit is contained in:
parent
13519a929c
commit
1a48622d77
1 changed files with 12 additions and 7 deletions
|
|
@ -178,11 +178,14 @@ class DeckBrowser:
|
||||||
|
|
||||||
def _renderDeckTree(self, top: DeckTreeNode) -> str:
|
def _renderDeckTree(self, top: DeckTreeNode) -> str:
|
||||||
buf = """
|
buf = """
|
||||||
<tr><th colspan=5 align=start>%s</th><th class=count>%s</th>
|
<tr><th colspan=5 align=start>%s</th>
|
||||||
<th class=count>%s</th><th class=optscol></th></tr>""" % (
|
<th class=count>%s</th>
|
||||||
|
<th class=count></th>
|
||||||
|
<th class=count>%s</th>
|
||||||
|
<th class=optscol></th></tr>""" % (
|
||||||
tr.decks_deck(),
|
tr.decks_deck(),
|
||||||
tr.statistics_due_count(),
|
|
||||||
tr.actions_new(),
|
tr.actions_new(),
|
||||||
|
tr.statistics_due_count(),
|
||||||
)
|
)
|
||||||
buf += self._topLevelDragRow()
|
buf += self._topLevelDragRow()
|
||||||
|
|
||||||
|
|
@ -199,8 +202,6 @@ class DeckBrowser:
|
||||||
else:
|
else:
|
||||||
prefix = "-"
|
prefix = "-"
|
||||||
|
|
||||||
due = node.review_count + node.learn_count
|
|
||||||
|
|
||||||
def indent() -> str:
|
def indent() -> str:
|
||||||
return " " * 6 * (node.level - 1)
|
return " " * 6 * (node.level - 1)
|
||||||
|
|
||||||
|
|
@ -238,9 +239,13 @@ class DeckBrowser:
|
||||||
klass = "zero-count"
|
klass = "zero-count"
|
||||||
return f'<span class="{klass}">{cnt}</span>'
|
return f'<span class="{klass}">{cnt}</span>'
|
||||||
|
|
||||||
buf += "<td align=right>%s</td><td align=right>%s</td>" % (
|
review = nonzeroColour(node.review_count, "review-count")
|
||||||
nonzeroColour(due, "review-count"),
|
learn = nonzeroColour(node.learn_count, "learn-count")
|
||||||
|
|
||||||
|
buf += ("<td align=right>%s</td>" * 3) % (
|
||||||
nonzeroColour(node.new_count, "new-count"),
|
nonzeroColour(node.new_count, "new-count"),
|
||||||
|
learn,
|
||||||
|
review,
|
||||||
)
|
)
|
||||||
# options
|
# options
|
||||||
buf += (
|
buf += (
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue