mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-04-29 01:42:37 +02:00
More whiteline reversions and re-adding old comment
This commit is contained in:
parent
fb02684fd2
commit
391c4219a2
2 changed files with 12 additions and 9 deletions
|
@ -685,6 +685,9 @@ def list_bills():
|
||||||
|
|
||||||
# standard query if no filters are active
|
# standard query if no filters are active
|
||||||
if not filters_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)
|
weighted_bills = g.project.get_bill_weights_ordered().paginate(per_page=100, error_out=True)
|
||||||
else:
|
else:
|
||||||
query = Bill.query.join(Person).filter(Person.project_id == g.project.id)
|
query = Bill.query.join(Person).filter(Person.project_id == g.project.id)
|
||||||
|
|
Loading…
Reference in a new issue