diff options
| author | Alexandre Avenel <avenel.alexandre@gmail.com> | 2014-07-21 22:23:30 +0200 |
|---|---|---|
| committer | Alexandre Avenel <avenel.alexandre@gmail.com> | 2014-07-21 22:23:30 +0200 |
| commit | 9236c132134891c8255da5fd744f045c86e083fe (patch) | |
| tree | 27ffc455275c3dff37a8406846f381d2b585dfd2 /budget | |
| parent | 229fe41a0ceb207e8d6d4b24adfa0aa2c32b436d (diff) | |
| download | ihatemoney-mirror-9236c132134891c8255da5fd744f045c86e083fe.zip ihatemoney-mirror-9236c132134891c8255da5fd744f045c86e083fe.tar.gz ihatemoney-mirror-9236c132134891c8255da5fd744f045c86e083fe.tar.bz2 | |
Fix rounding error in balances
Diffstat (limited to 'budget')
| -rw-r--r-- | budget/models.py | 2 |
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 |
