From 28a824e54a20b2c0324d54ce8ffc066880bda4b9 Mon Sep 17 00:00:00 2001 From: Markus Birth Date: Tue, 15 Aug 2017 15:23:39 +0200 Subject: [PATCH] Add osvs parameter to update check. --- tclcheck.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tclcheck.py b/tclcheck.py index 1468091..12c7780 100644 --- a/tclcheck.py +++ b/tclcheck.py @@ -23,9 +23,9 @@ def salt(): return "{0}{1}".format(str(millis), tail) -def check(sess, serid, curef, fv="AAM481", mode=4, ftype="Firmware", cltp=2010, cktp=2, rtd=1, chnl=2): +def check(sess, serid, curef, fv="AAM481", osvs="7.1.1", mode=4, ftype="Firmware", cltp=2010, cktp=2, rtd=1, chnl=2): geturl = "http://g2master-us-east.tctmobile.com/check.php" - params = {"id": serid, "curef": curef, "fv": fv, "mode": mode, "type": ftype, "cltp": cltp, "cktp": cktp, "rtd": rtd, "chnl": chnl} + params = {"id": serid, "curef": curef, "fv": fv, "mode": mode, "type": ftype, "cltp": cltp, "cktp": cktp, "rtd": rtd, "chnl": chnl, "osvs": osvs} req = sess.get(geturl, params=params) if req.status_code == 200: return(req.text)