aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Avenel <avenel.alexandre@gmail.com>2014-07-21 22:23:30 +0200
committerAlexandre Avenel <avenel.alexandre@gmail.com>2014-07-21 22:23:30 +0200
commit9236c132134891c8255da5fd744f045c86e083fe (patch)
tree27ffc455275c3dff37a8406846f381d2b585dfd2
parent229fe41a0ceb207e8d6d4b24adfa0aa2c32b436d (diff)
downloadihatemoney-mirror-9236c132134891c8255da5fd744f045c86e083fe.zip
ihatemoney-mirror-9236c132134891c8255da5fd744f045c86e083fe.tar.gz
ihatemoney-mirror-9236c132134891c8255da5fd744f045c86e083fe.tar.bz2
Fix rounding error in balances
-rw-r--r--budget/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/budget/models.py b/budget/models.py
index c1372c0..b3e4eff 100644
--- a/budget/models.py
+++ b/budget/models.py
@@ -219,7 +219,7 @@ class Bill(db.Model):
def pay_each(self):
"""Compute what each person has to pay"""
if self.owers:
- return round(self.amount / len(self.owers), 2)
+ return self.amount / len(self.owers)
else:
return 0