From 20abad9e046c9ea3743ba9ffd02209619acca220 Mon Sep 17 00:00:00 2001 From: Markus Birth Date: Fri, 12 Jan 2018 00:44:18 +0100 Subject: [PATCH] Clarification: First parameter is only a label. --- tcllib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tcllib.py b/tcllib.py index 576f1ba..eccdd7d 100644 --- a/tcllib.py +++ b/tcllib.py @@ -399,10 +399,10 @@ class FotaCheck: print(repr(req.text)) raise SystemExit - def do_checksum(self, encslave, uri1, uri2): + def do_checksum(self, encslave, address, uri): url = "http://" + encslave + "/checksum.php" params = self.get_creds2() - params[b"address"] = bytes('{"' + uri1 + '":"' + uri2 + '"}', "utf-8") + params[b"address"] = bytes('{"' + address + '":"' + uri + '"}', "utf-8") #print(repr(dict(params))) req = self.sess.post(url, data=params)