diff options
Diffstat (limited to 'budget/web.py')
| -rw-r--r-- | budget/web.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/budget/web.py b/budget/web.py index 5afd9b4..0b302cd 100644 --- a/budget/web.py +++ b/budget/web.py @@ -383,10 +383,11 @@ def change_lang(lang): return redirect(request.headers.get('Referer') or url_for('.home')) -@main.route("/<project_id>/compute") -def compute_bills(): +@main.route("/<project_id>/settle_bills") +def settle_bill(): """Compute the sum each one have to pay to each other and display it""" - return render_template("compute_bills.html") + bills = g.project.get_transactions_to_settle_bill() + return render_template("settle_bills.html", bills=bills) @main.route("/<project_id>/archives/create", methods=["GET", "POST"]) |
