aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--budget/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/budget/models.py b/budget/models.py
index 27bd80b..727200f 100644
--- a/budget/models.py
+++ b/budget/models.py
@@ -62,7 +62,7 @@ class Project(db.Model):
debts.append({"person": person, "balance": -balance[person.id]})
# Try and find exact matches
for credit in credits:
- match = self.exactmatch(credit["balance"], debts)
+ match = self.exactmatch(round(credit["balance"], 2), debts)
if match:
for m in match:
transactions.append({"ower": m["person"], "receiver": credit["person"], "amount": m["balance"]})