Fixing badge for app level 0

This commit is contained in:
Alexandre Aubin 2018-03-16 23:34:55 +01:00
parent 4674d894a2
commit d8251571c8

View file

@ -111,7 +111,7 @@ def badge(app):
level = r.level level = r.level
break break
badge = "level%s.svg" % level if level else "unknown.svg" badge = "level%s.svg" % level if not level is None else "unknown.svg"
svg = open("./app/static/badges/%s" % badge).read() svg = open("./app/static/badges/%s" % badge).read()
response = make_response(svg) response = make_response(svg)