1
0

Colourise new OTA versions. More colours in tcllib.

This commit is contained in:
2017-10-18 22:42:05 +02:00
parent cbd4c18ce6
commit a25897e3fa
2 changed files with 9 additions and 1 deletions
+2 -1
View File
@@ -38,7 +38,8 @@ with open("prds.txt", "r") as f:
fc.fv = lastver
check_xml = fc.do_check(max_tries=20)
curef, fv, tv, fw_id, fileid, fn, fsize, fhash = fc.parse_check(check_xml)
print("{}: {}{} {} ({})".format(prd, fv, tv, fhash, model))
versioninfo = tcllib.ANSI_CYAN_DARK + fv + tcllib.ANSI_RESET + "" + tcllib.ANSI_CYAN + tv + tcllib.ANSI_RESET
print("{}: {} {} ({})".format(prd, versioninfo, fhash, model))
except RequestException as e:
print("{} ({}): {}".format(prd, lastver, str(e)))
continue