[equo] fix ugc vote float (or int) to string conversion

This commit is contained in:
Fabio Erculiani
2012-11-11 21:30:24 +01:00
parent 7f99aa787d
commit b7d7006505
+2 -2
View File
@@ -384,7 +384,7 @@ Manage User Generate Content (votes, comments, files).
if vote is None:
vote = _("no votes")
else:
vote = const_convert_to_unicode(vote)
vote = const_convert_to_unicode("%.2f" % (vote,))
entropy_client.output(" %s [%s] %s: %s" % (
bold(const_convert_to_unicode("@@")),
purple(pkgkey),
@@ -957,7 +957,7 @@ Manage User Generate Content (votes, comments, files).
entropy_client.output(
"%s: %s" % (
darkred(_("Vote")),
blue(str(vote)),
blue(const_convert_to_unicode(vote)),
),
header=" "
)