mirror of https://github.com/dirtbags/moth.git
Merge branch 'v3.4_devel' of https://github.com/dirtbags/moth into 81-support-downloading-open-content
This commit is contained in:
commit
8771cf9d4f
|
@ -7,4 +7,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
## [Unreleased]
|
||||
### Added
|
||||
- A changelog
|
||||
- Support for embedding Python libraries at the category or puzzle level
|
||||
- Minimal PWA support to permit caching of currently-unlocked content
|
||||
|
|
|
@ -200,6 +200,10 @@ class Puzzle:
|
|||
LOGGER.debug("Handling key: %s, value: %s", key, val)
|
||||
if key == 'author':
|
||||
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':
|
||||
self.summary = val
|
||||
elif key == 'answer':
|
||||
|
|
Loading…
Reference in New Issue