tolerate string values in deck["conf"]

This commit is contained in:
Damien Elmes 2020-04-01 19:36:03 +10:00
parent 05cc47a5d3
commit c57801c168

View File

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