mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -04:00
add groups.all()
This commit is contained in:
parent
cca48a0ced
commit
c0e992618c
1 changed files with 4 additions and 0 deletions
|
@ -89,6 +89,10 @@ class GroupManager(object):
|
|||
self.deck.db.execute("delete from groups where id = ?", gid)
|
||||
print "fixme: loop through models and update stale gid references"
|
||||
|
||||
def all(self):
|
||||
"An unsorted list of all group names."
|
||||
return [x['name'] for x in self.groups.values()]
|
||||
|
||||
# Utils
|
||||
#############################################################
|
||||
|
||||
|
|
Loading…
Reference in a new issue