mirror of
https://github.com/YunoHost/tartiflette.git
synced 2024-09-03 20:06:08 +02:00
Fixing badge for app level 0
This commit is contained in:
parent
4674d894a2
commit
d8251571c8
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ def badge(app):
|
|||
level = r.level
|
||||
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()
|
||||
response = make_response(svg)
|
||||
|
|
Loading…
Reference in a new issue