Standardize ksa vs ksas naming convention

This commit is contained in:
Donaldson 2019-08-02 13:02:14 -05:00 committed by John Donaldson
parent c0cb4d6e02
commit 5f90d5981d
1 changed files with 3 additions and 3 deletions

View File

@ -85,7 +85,7 @@ class Puzzle:
self.objective = None # Text describing the expected learning outcome from solving this puzzle, *why* are you solving this puzzle
self.success = None # Text describing criteria for different levels of success, e.g. {"Acceptable": "Did OK", "Mastery": "Did even better"}
self.solution = None # Text describing how to solve the puzzle
self.ksa = [] # A list of references to related NICE KSAs (e.g. K0058, . . .)
self.ksas = [] # A list of references to related NICE KSAs (e.g. K0058, . . .)
self.logs = []
self.randseed = category_seed * self.points
@ -142,7 +142,7 @@ class Puzzle:
elif key == "solution":
self.solution = val
elif key == "ksa":
self.ksa.append(val)
self.ksas.append(val)
else:
raise ValueError("Unrecognized header field: {}".format(key))
else:
@ -296,7 +296,7 @@ class Puzzle:
'objective': self.objective,
'success': self.success,
'solution': self.solution,
'ksa': self.ksa,
'ksas': self.ksas,
}
def hashes(self):