fix some codacy errors

This commit is contained in:
Valentin Samir
2016-07-29 15:11:43 +02:00
parent 3063cf116b
commit 570676f5b0
6 changed files with 28 additions and 11 deletions

View File

@ -64,9 +64,7 @@ def context(params):
params["VERSION"] = VERSION
params["LAST_VERSION"] = LAST_VERSION
if LAST_VERSION is not None:
t_version = decode_version(VERSION)
t_last_version = decode_version(LAST_VERSION)
params["upgrade_available"] = t_version < t_last_version
params["upgrade_available"] = decode_version(VERSION) < decode_version(LAST_VERSION)
else:
params["upgrade_available"] = False
return params