From 117a458fa0e4ed67eb7d5dc4121c6988c9ebcf28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Tue, 6 Dec 2011 19:14:52 +0100 Subject: [PATCH] round gender stats (#1119) --- tabellio/webviews/deputy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tabellio/webviews/deputy.py b/tabellio/webviews/deputy.py index a877f46..1aea613 100644 --- a/tabellio/webviews/deputy.py +++ b/tabellio/webviews/deputy.py @@ -241,7 +241,7 @@ class GenderStatsView(BrowserView): baseline = 320/2-30 else: baseline = 320/2+30 - percent = 100*sum(group.to_list())/plot.total + percent = int(round(100*sum(group.to_list())/plot.total)) plot.context.set_source_rgba(*plot.series_colors[number][:4]) plot.context.rectangle(410, baseline-25, 40, 40) plot.context.fill()