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
|
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]
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue