1
0

Output old version for FULL search as well. Also: colour coding - OTA=yellow, FULL=cyan

This commit is contained in:
2017-12-20 00:00:28 +01:00
parent 9d8e0e8ff1
commit 99b4fd7912
2 changed files with 6 additions and 2 deletions
Executable → Regular
+1 -1
View File
@@ -48,7 +48,7 @@ for prd, variant in prds.items():
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)
versioninfo = tcllib.ANSI_CYAN_DARK + fv + tcllib.ANSI_RESET + "" + tcllib.ANSI_CYAN + tv + tcllib.ANSI_RESET + " (FULL: {})".format(variant["last_full"])
versioninfo = tcllib.ANSI_YELLOW_DARK + fv + tcllib.ANSI_RESET + "" + tcllib.ANSI_YELLOW + tv + tcllib.ANSI_RESET + " (FULL: {})".format(variant["last_full"])
print("{}: {} {} ({})".format(prd, versioninfo, fhash, model))
except RequestException as e:
print("{} ({}): {}".format(prd, lastver, str(e)))