mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
add a countless group tree too
This commit is contained in:
parent
9ebbdc2be1
commit
aacb57c196
1 changed files with 6 additions and 0 deletions
|
@ -131,6 +131,12 @@ from cards group by gid""", self.today):
|
|||
def groupCountTree(self):
|
||||
return self._groupChildren(self.groupCounts())
|
||||
|
||||
def groupTree(self):
|
||||
"Like the count tree without the counts. Faster."
|
||||
return self._groupChildren([[name, gid, 0, 0, 0] for (gid, name) in
|
||||
self.deck.db.execute(
|
||||
"select id, name from groups order by name")])
|
||||
|
||||
def _groupChildren(self, grps):
|
||||
tree = []
|
||||
# split strings
|
||||
|
|
Loading…
Reference in a new issue