Fix bury count (#1678)
This commit is contained in:
parent
52865cf284
commit
ad44dc304d
@ -221,13 +221,14 @@ class Overview:
|
||||
|
||||
def _table(self) -> str | None:
|
||||
counts = list(self.mw.col.sched.counts())
|
||||
tree_counts = self.mw.col.sched.deck_due_tree(
|
||||
self.mw.col.decks.get_current_id()
|
||||
)
|
||||
current_did = self.mw.col.decks.get_current_id()
|
||||
deck_tree = self.mw.col.sched.deck_due_tree(current_did)
|
||||
deck_node = self.mw.col.decks.find_deck_in_tree(deck_tree, current_did)
|
||||
|
||||
but = self.mw.button
|
||||
buried_new = tree_counts.new_count - counts[0]
|
||||
buried_learning = tree_counts.learn_count - counts[1]
|
||||
buried_review = tree_counts.review_count - counts[2]
|
||||
buried_new = deck_node.new_count - counts[0]
|
||||
buried_learning = deck_node.learn_count - counts[1]
|
||||
buried_review = deck_node.review_count - counts[2]
|
||||
buried_label = tr.browsing_buried()
|
||||
|
||||
def number_row(title: str, klass: str, count: int, buried_count: int) -> str:
|
||||
|
Loading…
Reference in New Issue
Block a user