mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 16:26:40 -04:00
fix inverted decks.have()
This commit is contained in:
parent
ab20f215b1
commit
1bd14b538d
1 changed files with 1 additions and 1 deletions
|
@ -168,7 +168,7 @@ class DeckManager(DeprecatedNamesMixin):
|
|||
return None
|
||||
|
||||
def have(self, id: DeckId) -> bool:
|
||||
return not self.get_legacy(id)
|
||||
return bool(self.get_legacy(id))
|
||||
|
||||
def get_all_legacy(self) -> List[DeckDict]:
|
||||
return list(from_json_bytes(self.col._backend.get_all_decks_legacy()).values())
|
||||
|
|
Loading…
Reference in a new issue