Small fixes from making CSV examples (#1963)

* Closes #1958
This commit is contained in:
Kevin Chung
2021-07-27 17:03:27 -04:00
committed by GitHub
parent 0ba70aa92d
commit 0dbe008011

View File

@@ -252,8 +252,8 @@ def load_challenges_csv(dict_reader):
hints = line.pop("hints", None)
challenge_type = line.pop("type", "standard")
# Load in custome type_data
type_data = json.loads(line.pop("type_data", "{}"))
# Load in custom type_data
type_data = json.loads(line.pop("type_data", "{}") or "{}")
line.update(type_data)
ChallengeClass = get_chal_class(challenge_type)