From b1b7afc728e9da06f5f8803b9ff04c2f9654ef77 Mon Sep 17 00:00:00 2001 From: Donaldson Date: Mon, 18 Nov 2019 11:40:37 -0600 Subject: [PATCH 1/2] Fixing issue with multiple fields in YAML file --- CHANGELOG.md | 2 ++ devel/moth.py | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ffdfb0..cd648e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Fixed +- Issue with multiple answers in devel server and YAML-format .moth ## [3.4.1] - 2019-11-17 ### Fixed diff --git a/devel/moth.py b/devel/moth.py index 623a44e..d228b72 100644 --- a/devel/moth.py +++ b/devel/moth.py @@ -249,6 +249,10 @@ class Puzzle: self.success.mastery = val elif key == "solution": 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": self.ksas.append(val) else: From 79670960588d26dfff6153f9a161881a8a1b0886 Mon Sep 17 00:00:00 2001 From: Donaldson Date: Mon, 18 Nov 2019 11:42:56 -0600 Subject: [PATCH 2/2] Release 3.4.2 --- CHANGELOG.md | 2 ++ VERSION | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cd648e4..8b37b48 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] + +## [3.4.2] - 2019-11-18 ### Fixed - Issue with multiple answers in devel server and YAML-format .moth diff --git a/VERSION b/VERSION index 47b322c..4d9d11c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.4.1 +3.4.2