mirror of https://github.com/dirtbags/moth.git
Allow (but ignore) hint and name header fields
This commit is contained in:
parent
c3f58835b5
commit
e9bd074da4
|
@ -102,6 +102,10 @@ class Puzzle:
|
|||
self.summary = val
|
||||
elif key == 'answer':
|
||||
self.answers.append(val)
|
||||
elif key == 'hint':
|
||||
pass
|
||||
elif key == 'name':
|
||||
pass
|
||||
elif key == 'file':
|
||||
parts = val.split()
|
||||
name = parts[0]
|
||||
|
|
|
@ -76,11 +76,6 @@ def generate_html(ziphandle, puzzle, puzzledir, category, points, authors, files
|
|||
</form>
|
||||
</section>
|
||||
<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>
|
||||
</html>'''.format(
|
||||
category=category,
|
||||
|
|
Loading…
Reference in New Issue