tolerate string values in deck["conf"]
This commit is contained in:
parent
05cc47a5d3
commit
c57801c168
@ -326,7 +326,8 @@ class DeckManager:
|
|||||||
deck = self.get(did, default=False)
|
deck = self.get(did, default=False)
|
||||||
assert deck
|
assert deck
|
||||||
if "conf" in 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
|
conf["dyn"] = False
|
||||||
return conf
|
return conf
|
||||||
# dynamic decks have embedded conf
|
# dynamic decks have embedded conf
|
||||||
|
Loading…
Reference in New Issue
Block a user