]> git.cworth.org Git - turbot-web/commit
Make the code robust against a puzzle without some fields
authorCarl Worth <cworth@cworth.org>
Wed, 12 Jan 2022 08:12:58 +0000 (00:12 -0800)
committerCarl Worth <cworth@cworth.org>
Wed, 12 Jan 2022 08:12:58 +0000 (00:12 -0800)
commit88cc255b97357ff671194816186c88b6b42eaccf
treece15c827fb5c8b4b89f26d93bc9c61775acf5274
parent72e26f791228ad95c4cc5bd67eba4e0d23396f63
Make the code robust against a puzzle without some fields

Specifically, some puzzles may be missing any of the 'rounds', 'tags',
or 'url' keys. Previousl, the code was crashing whenever this was the case.

With this commit, empty strings or empty lists are used as the values
for any missing keys as appropriate.
html_generator.py