More whiteline reversions and re-adding old comment

This commit is contained in:
MilouH 2025-04-03 11:13:44 +02:00
parent fb02684fd2
commit 391c4219a2
2 changed files with 12 additions and 9 deletions

View file

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