1
0
mirror of https://github.com/mbirth/tcl_ota_check.git synced 2024-11-10 06:16:46 +00:00

fix type issues with post params

This commit is contained in:
thurask 2017-10-14 20:15:37 -04:00
parent accc171311
commit eaa7418c34
No known key found for this signature in database
GPG Key ID: A6CCCDEA29795048

View File

@ -133,12 +133,12 @@ class FotaCheck:
params["id"] = self.serid params["id"] = self.serid
params["curef"] = self.curef params["curef"] = self.curef
params["fv"] = self.fv params["fv"] = self.fv
params["mode"] = self.mode params["mode"] = self.mode.value
params["type"] = self.ftype params["type"] = self.ftype
params["cltp"] = self.cltp params["cltp"] = self.cltp.value
params["cktp"] = self.cktp params["cktp"] = self.cktp.value
params["rtd"] = self.rtd params["rtd"] = self.rtd.value
params["chnl"] = self.chnl params["chnl"] = self.chnl.value
#params["osvs"] = self.osvs #params["osvs"] = self.osvs
last_response = None last_response = None
@ -246,14 +246,14 @@ class FotaCheck:
params["tv"] = tv params["tv"] = tv
params["type"] = self.ftype params["type"] = self.ftype
params["fw_id"] = fw_id params["fw_id"] = fw_id
params["mode"] = self.mode params["mode"] = self.mode.value
params["vk"] = self.get_vk2(params, self.cltp) params["vk"] = self.get_vk2(params, self.cltp.value)
params["cltp"] = self.cltp params["cltp"] = self.cltp.value
params["cktp"] = self.cktp params["cktp"] = self.cktp.value
params["rtd"] = self.rtd params["rtd"] = self.rtd.value
if self.mode == self.MODE.FULL: if self.mode == self.MODE.FULL:
params["foot"] = 1 params["foot"] = 1
params["chnl"] = self.chnl params["chnl"] = self.chnl.value
#print(repr(dict(params))) #print(repr(dict(params)))
req = self.sess.post(url, data=params) req = self.sess.post(url, data=params)