From c57801c1686b846215e438affd9628dd93cd880e Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 1 Apr 2020 19:36:03 +1000 Subject: [PATCH] tolerate string values in deck["conf"] --- pylib/anki/decks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pylib/anki/decks.py b/pylib/anki/decks.py index 3f21428a4..07dabac17 100644 --- a/pylib/anki/decks.py +++ b/pylib/anki/decks.py @@ -326,7 +326,8 @@ class DeckManager: deck = self.get(did, default=False) assert deck if "conf" in deck: - conf = self.getConf(deck["conf"]) + dcid = int(deck["conf"]) # may be a string + conf = self.getConf(dcid) conf["dyn"] = False return conf # dynamic decks have embedded conf