From 1bd14b538d65f2def937517f7f32a7f7c318b007 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 1 Sep 2021 12:00:05 +1000 Subject: [PATCH] fix inverted decks.have() --- pylib/anki/decks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylib/anki/decks.py b/pylib/anki/decks.py index bb32c074f..a102a2145 100644 --- a/pylib/anki/decks.py +++ b/pylib/anki/decks.py @@ -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())