mirror of https://github.com/dirtbags/moth.git
Force success dictionary keys to be lower-case
This commit is contained in:
parent
acef542f66
commit
a99bc15c88
|
@ -210,7 +210,8 @@ class Puzzle:
|
||||||
elif key == "objective":
|
elif key == "objective":
|
||||||
self.objective = val
|
self.objective = val
|
||||||
elif key == "success":
|
elif key == "success":
|
||||||
self.success = val
|
# Force success dictionary keys to be lower-case
|
||||||
|
self.success = dict((x.lower(), y) for x,y in val.items())
|
||||||
elif key == "success.acceptable":
|
elif key == "success.acceptable":
|
||||||
self.success.acceptable = val
|
self.success.acceptable = val
|
||||||
elif key == "success.mastery":
|
elif key == "success.mastery":
|
||||||
|
|
Loading…
Reference in New Issue