From 42efd09692dffc67e58050a24a49ee874a8c105d Mon Sep 17 00:00:00 2001 From: Scott Ludwig Date: Fri, 1 Jan 2016 22:49:14 -0800 Subject: [PATCH] Fix use of 'json' instead of 'j' This bug was created when switching from simplejson to json module, due to python 2.5->2.7 migration. Any variables named 'json' needed to be renamed, and this is an instance that was missed. --- stats/sendcommand.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stats/sendcommand.py b/stats/sendcommand.py index 3c67bba..fb6c1ee 100644 --- a/stats/sendcommand.py +++ b/stats/sendcommand.py @@ -28,7 +28,7 @@ class SendCommand(webapp.RequestHandler): def post(self): hash = self.request.body[:32] j = self.request.body[32:] - m = md5(json + config.SENDCOMMAND_SECRET) + m = md5(j + config.SENDCOMMAND_SECRET) if m.hexdigest() == hash: c = json.loads(j) serverinfo.ServerInfo.send_command(c['info'],