fix inverted decks.have()

This commit is contained in:
Damien Elmes 2021-09-01 12:00:05 +10:00
parent ab20f215b1
commit 1bd14b538d

View File

@ -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())