Commit 9752303b authored by Michal Čihař's avatar Michal Čihař

Round percent for badge

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 301fcc1f
......@@ -349,7 +349,7 @@ class ShieldsBadgeWidget(Widget):
return '{0}://img.shields.io/badge/{1}-{2}-{3}.svg'.format(
proto,
urllib.quote(_('translated').encode('utf-8')),
'{0}%25'.format(self.percent),
'{0}%25'.format(int(self.percent)),
color
)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment