From 8fc25643e62d95b748dad2a84f1f22d2f0deb8ca Mon Sep 17 00:00:00 2001 From: GingLuo Date: Sun, 11 Dec 2022 18:17:13 -0500 Subject: [PATCH 1/2] fix double counting --- ihatemoney/models.py | 1 - 1 file changed, 1 deletion(-) diff --git a/ihatemoney/models.py b/ihatemoney/models.py index 68f5baef..de235e72 100644 --- a/ihatemoney/models.py +++ b/ihatemoney/models.py @@ -158,7 +158,6 @@ class Project(db.Model): """ monthly = defaultdict(lambda: defaultdict(float)) for bill in self.get_bills_unordered().all(): - monthly[bill.date.year][bill.date.month] += bill.converted_amount if (bill.is_reimbursement == False): # if (not bill.what.startswith("R-")): monthly[bill.date.year][bill.date.month] += bill.converted_amount From 58f81978b432d542b5637af940154567b8668cee Mon Sep 17 00:00:00 2001 From: GingLuo Date: Sun, 11 Dec 2022 18:24:13 -0500 Subject: [PATCH 2/2] minor fix --- ihatemoney/templates/forms.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ihatemoney/templates/forms.html b/ihatemoney/templates/forms.html index 76591751..83116859 100644 --- a/ihatemoney/templates/forms.html +++ b/ihatemoney/templates/forms.html @@ -175,8 +175,8 @@

- {{ _("Everyone!!!!!!!") }} - {{_("No one!!!")}} + {{ _("Everyone") }} + {{_("No one")}}

{% for key, value, checked in form.payed_for.iter_choices() | sort(attribute='1') %}