diff --git a/tools/devel-server.py b/tools/devel-server.py
index c79a65b..aa69535 100755
--- a/tools/devel-server.py
+++ b/tools/devel-server.py
@@ -163,10 +163,10 @@ you are a fool.
body.write("
")
for name,puzzlefile in sorted(puzzle.files.items()):
if puzzlefile.visible:
- visibility = 'listed as a generated file'
+ visibility = ''
else:
- visibility = 'unlisted'
- body.write('- {filename} ({visibility})
'
+ visibility = '(unlisted)'
+ body.write('- {filename} {visibility}
'
.format(cat=parts[2],
points=puzzle.points,
filename=name,
diff --git a/tools/moth.py b/tools/moth.py
index cfa7067..d15dac3 100644
--- a/tools/moth.py
+++ b/tools/moth.py
@@ -108,7 +108,7 @@ class Puzzle:
stream = open(name, 'rb')
try:
name = parts[1]
- hidden = parts[2]
+ hidden = (parts[2].lower() == "hidden")
except IndexError:
pass
self.files[name] = PuzzleFile(stream, name, not hidden)