From 355a48381cbca6f853a36905c2214cb13ecec7bf Mon Sep 17 00:00:00 2001 From: Brett Smith Date: Thu, 18 Jun 2020 14:05:49 -0400 Subject: [PATCH] reports: Balance.clean_copy() creates new Balance with given tolerance. --- conservancy_beancount/reports/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conservancy_beancount/reports/core.py b/conservancy_beancount/reports/core.py index 1154b4c..5e27169 100644 --- a/conservancy_beancount/reports/core.py +++ b/conservancy_beancount/reports/core.py @@ -174,8 +174,8 @@ class Balance(Mapping[str, data.Amount]): if tolerance is None: tolerance = self.tolerance return type(self)( - amount for amount in self.values() - if abs(amount.number) >= tolerance + (amount for amount in self.values() if abs(amount.number) >= tolerance), + tolerance, ) @staticmethod