aboutsummaryrefslogtreecommitdiff
path: root/budget/web.py
diff options
context:
space:
mode:
Diffstat (limited to 'budget/web.py')
-rw-r--r--budget/web.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/budget/web.py b/budget/web.py
index 6097d80..2293baa 100644
--- a/budget/web.py
+++ b/budget/web.py
@@ -382,10 +382,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_bill")
+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.settle_bill()
+ return render_template("settle_bill.html", bills=bills)
@main.route("/<project_id>/archives/create")