From a99bc15c88413103543a5ffd4a4bd6e006510adf Mon Sep 17 00:00:00 2001 From: John Donaldson Date: Wed, 14 Aug 2019 23:55:09 +0100 Subject: [PATCH] Force success dictionary keys to be lower-case --- devel/moth.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/devel/moth.py b/devel/moth.py index 76ed787..1875bd7 100644 --- a/devel/moth.py +++ b/devel/moth.py @@ -210,7 +210,8 @@ class Puzzle: elif key == "objective": self.objective = val 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": self.success.acceptable = val elif key == "success.mastery":