From 391c4219a282372325af87944d8b78b8b19bee59 Mon Sep 17 00:00:00 2001 From: MilouH Date: Thu, 3 Apr 2025 11:13:44 +0200 Subject: [PATCH] More whiteline reversions and re-adding old comment --- ihatemoney/templates/list_bills.html | 18 +++++++++--------- ihatemoney/web.py | 3 +++ 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/ihatemoney/templates/list_bills.html b/ihatemoney/templates/list_bills.html index d570f1a3..be98b445 100644 --- a/ihatemoney/templates/list_bills.html +++ b/ihatemoney/templates/list_bills.html @@ -94,15 +94,15 @@
{% if bills.pages > 1 %} {% endif %} diff --git a/ihatemoney/web.py b/ihatemoney/web.py index b7f780d9..6f404a8f 100644 --- a/ihatemoney/web.py +++ b/ihatemoney/web.py @@ -685,6 +685,9 @@ def list_bills(): # standard query if no filters are active if not filters_active: + # Each item will be a (weight_sum, Bill) tuple. + # TODO: improve this awkward result using column_property: + # https://docs.sqlalchemy.org/en/14/orm/mapped_sql_expr.html. weighted_bills = g.project.get_bill_weights_ordered().paginate(per_page=100, error_out=True) else: query = Bill.query.join(Person).filter(Person.project_id == g.project.id)