Make it work again

This commit is contained in:
Neale Pickett 2016-10-18 05:20:48 +00:00
parent ad77a99eba
commit 80b80e895c
2 changed files with 3 additions and 6 deletions

View File

@ -146,9 +146,9 @@ you are a fool.
self.wfile.write(content.encode('utf-8'))
def run(address=('', 8080)):
def run(address=('localhost', 8080)):
httpd = ThreadingServer(address, MothHandler)
print("=== Listening on http://{}:{}/".format(address[0] or "localhost", address[1]))
print("=== Listening on http://{}:{}/".format(address[0], address[1]))
httpd.serve_forever()
if __name__ == '__main__':

View File

@ -86,12 +86,9 @@ class Puzzle:
else:
raise ValueError("Unacceptable file type for puzzle at {}".format(path))
self._seed = category_seed * self['points']
self._seed = category_seed * self.points
self.rand = random.Random(self._seed)
# Set our 'files' as a dict, since we want register them uniquely by name.
self['files'] = dict()
# A list of temporary files we've created that will need to be deleted.
self._temp_files = []