Merge branch 'v3.4_devel' of https://github.com/dirtbags/moth into 81-support-downloading-open-content

This commit is contained in:
John Donaldson 2019-11-08 19:37:23 +00:00
commit 8771cf9d4f
2 changed files with 5 additions and 0 deletions

View File

@ -7,4 +7,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
### Added ### Added
- A changelog - A changelog
- Support for embedding Python libraries at the category or puzzle level
- Minimal PWA support to permit caching of currently-unlocked content - Minimal PWA support to permit caching of currently-unlocked content

View File

@ -200,6 +200,10 @@ class Puzzle:
LOGGER.debug("Handling key: %s, value: %s", key, val) LOGGER.debug("Handling key: %s, value: %s", key, val)
if key == 'author': if key == 'author':
self.authors.append(val) self.authors.append(val)
elif key == 'authors':
if not isinstance(val, list):
raise ValueError("Authors must be a list, got %s, instead" & (type(val),))
self.authors = list(val)
elif key == 'summary': elif key == 'summary':
self.summary = val self.summary = val
elif key == 'answer': elif key == 'answer':