Commit 75a29267 authored by 赵建伟's avatar 赵建伟

update codes

parent bdaaf64e
......@@ -125,14 +125,14 @@ def check_is_ok():
for mapping in mapping_list:
mapping_dic[mapping[0]] = mapping[1]
shd_dic = {}
for shd in shd_list:
shd_dic[shd[0]] = shd[1]
suc_dic = {}
for suc in suc_list:
if shd_dic.get(suc[0]) != suc[1]:
suc_dic[suc[0]] = suc[1]
for shd in shd_list:
if suc_dic.get(shd[0]) != shd[1]:
is_send = True
error_msg += "【" + mapping_dic.get(suc[0]) + "】打点异常,应打点个数为:" + bytes(shd_dic.get(suc[0])) + ",实际打点个数为:" + bytes(suc[1]) + ", 请核实!\n"
error_msg += "【" + mapping_dic.get(shd[0]) + "】打点异常,应打点个数为:" + bytes(shd[1]) + ",实际打点个数为:" + suc_dic[shd[0]] + ", 请核实!\n"
else:
print "all is ok!"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment