summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2011-12-06 18:14:52 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2011-12-06 18:14:52 (GMT)
commit117a458fa0e4ed67eb7d5dc4121c6988c9ebcf28 (patch)
treee43137152a30301e2c374c941ea1da02a77f608c
parentb8c7342ad1900d944748300f843028b49f2c27e6 (diff)
downloadtabellio.webviews-117a458fa0e4ed67eb7d5dc4121c6988c9ebcf28.zip
tabellio.webviews-117a458fa0e4ed67eb7d5dc4121c6988c9ebcf28.tar.gz
tabellio.webviews-117a458fa0e4ed67eb7d5dc4121c6988c9ebcf28.tar.bz2
round gender stats (#1119)
-rw-r--r--tabellio/webviews/deputy.py2
1 files changed, 1 insertions, 1 deletions
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()