mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 07:52:24 -04:00
Revert "remove unused decks.count()"
This reverts commitc79b6835bf
.c79b6835bf
This commit is contained in:
parent
351d8a309f
commit
7f2610568a
1 changed files with 3 additions and 0 deletions
|
@ -200,6 +200,9 @@ class DeckManager:
|
||||||
deck["browserCollapsed"] = not collapsed
|
deck["browserCollapsed"] = not collapsed
|
||||||
self.save(deck)
|
self.save(deck)
|
||||||
|
|
||||||
|
def count(self) -> int:
|
||||||
|
return len(self.decks)
|
||||||
|
|
||||||
def get(self, did: Union[int, str], default: bool = True) -> Any:
|
def get(self, did: Union[int, str], default: bool = True) -> Any:
|
||||||
id = str(did)
|
id = str(did)
|
||||||
if id in self.decks:
|
if id in self.decks:
|
||||||
|
|
Loading…
Reference in a new issue