diff --git a/tools/devel-server.py b/tools/devel-server.py
index 365980a..8ed4b0c 100755
--- a/tools/devel-server.py
+++ b/tools/devel-server.py
@@ -159,9 +159,16 @@ you are a fool.
body.write(puzzle.html_body())
body.write("
Files
")
body.write("")
- for name in puzzle.files:
- body.write('- {filename}
'
- .format(cat=parts[2], points=puzzle.points, filename=name))
+ for name,puzzlefile in sorted(puzzle.files.items()):
+ if puzzlefile.visible:
+ visibility = 'listed as a generated file'
+ else:
+ visibility = 'unlisted'
+ body.write('- {filename} ({visibility})
'
+ .format(cat=parts[2],
+ points=puzzle.points,
+ filename=name,
+ visibility=visibility))
body.write("
")
body.write("Answers
")
body.write("