1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ihatemoney_ynh.git synced 2024-09-03 19:26:15 +02:00

Fix rounding error in balances

This commit is contained in:
Alexandre Avenel 2014-07-21 22:23:30 +02:00
parent 229fe41a0c
commit 9236c13213

View file

@ -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