fix inverted decks.have()
This commit is contained in:
parent
ab20f215b1
commit
1bd14b538d
@ -168,7 +168,7 @@ class DeckManager(DeprecatedNamesMixin):
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
def have(self, id: DeckId) -> bool:
|
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]:
|
def get_all_legacy(self) -> List[DeckDict]:
|
||||||
return list(from_json_bytes(self.col._backend.get_all_decks_legacy()).values())
|
return list(from_json_bytes(self.col._backend.get_all_decks_legacy()).values())
|
||||||
|
Loading…
Reference in New Issue
Block a user