Allow (but ignore) hint and name header fields

This commit is contained in:
Neale Pickett 2017-11-08 22:56:16 +00:00
parent c3f58835b5
commit e9bd074da4
2 changed files with 4 additions and 5 deletions

View File

@ -102,6 +102,10 @@ class Puzzle:
self.summary = val self.summary = val
elif key == 'answer': elif key == 'answer':
self.answers.append(val) self.answers.append(val)
elif key == 'hint':
pass
elif key == 'name':
pass
elif key == 'file': elif key == 'file':
parts = val.split() parts = val.split()
name = parts[0] name = parts[0]

View File

@ -76,11 +76,6 @@ def generate_html(ziphandle, puzzle, puzzledir, category, points, authors, files
</form> </form>
</section> </section>
<address>Puzzle by <span class="authors" data-handle="{authors}">{authors}</span></address> <address>Puzzle by <span class="authors" data-handle="{authors}">{authors}</span></address>
<section id="sponsors">
<img src="../../images/lanl.png" alt="Los Alamos National Laboratory">
<img src="../../images/doe.png" alt="US Department Of Energy">
<img src="../../images/sandia.png" alt="Sandia National Laboratories">
</section>
</body> </body>
</html>'''.format( </html>'''.format(
category=category, category=category,