mirror of https://github.com/dirtbags/moth.git
Make it work again
This commit is contained in:
parent
ad77a99eba
commit
80b80e895c
|
@ -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__':
|
||||
|
|
|
@ -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 = []
|
||||
|
||||
|
|
Loading…
Reference in New Issue