Hotfix for reset.

This commit is contained in:
Alexandr
2018-02-20 16:17:00 +01:00
parent 67d6f47bc3
commit a07a40e9de
3 changed files with 4 additions and 6 deletions

View File

@ -30,10 +30,6 @@ class RequestHandler(SimpleHTTPRequestHandler):
length = self.headers.get('content-length')
post_body = self.rfile.read(int(length))
msg = json.loads(post_body.decode("utf-8"))
msg2 = post_body.decode("utf-8")
fh = open("log.json","a+")
fh.write(msg2)
fh.close()
self.worker.handleUpdate(msg)
def do_GET(self):