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.
This commit is contained in:
Scott Ludwig 2016-01-01 22:49:14 -08:00
parent 39b5b9e923
commit 42efd09692

View File

@ -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'],