Merge pull request #101 from dirtbags/v3.4_hotfix

Release hotfix 3.4.2
This commit is contained in:
int00h5525 2019-11-18 11:44:55 -06:00 committed by GitHub
commit 08f2e95f89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 1 deletions

View File

@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
## [3.4.2] - 2019-11-18
### Fixed
- Issue with multiple answers in devel server and YAML-format .moth
## [3.4.1] - 2019-11-17 ## [3.4.1] - 2019-11-17
### Fixed ### Fixed
- Scoreboard was double-counting points - Scoreboard was double-counting points

View File

@ -1 +1 @@
3.4.1 3.4.2

View File

@ -249,6 +249,10 @@ class Puzzle:
self.success.mastery = val self.success.mastery = val
elif key == "solution": elif key == "solution":
self.solution = val self.solution = val
elif key == "ksas":
if not isinstance(val, list):
raise ValueError("KSAs must be a list, got %s, instead" & (type(val),))
self.ksas = val
elif key == "ksa": elif key == "ksa":
self.ksas.append(val) self.ksas.append(val)
else: else: