outposts: fix formatting

This commit is contained in:
Jens Langhammer 2020-09-19 19:12:49 +02:00
parent f6b52b9281
commit c90906c968

View file

@ -121,7 +121,11 @@ class Outpost(models.Model):
return {"version": "", "outdated": False, "should": OUR_VERSION} return {"version": "", "outdated": False, "should": OUR_VERSION}
try: try:
outpost_version = parse(value) outpost_version = parse(value)
return {"version": value, "outdated": outpost_version < OUR_VERSION, "should": OUR_VERSION} return {
"version": value,
"outdated": outpost_version < OUR_VERSION,
"should": OUR_VERSION,
}
except InvalidVersion: except InvalidVersion:
return {"version": version, "outdated": False, "should": OUR_VERSION} return {"version": version, "outdated": False, "should": OUR_VERSION}