diff options
| author | Xavier Mehrenberger <xavier.mehrenberger@gmail.com> | 2012-03-12 00:35:06 +0100 |
|---|---|---|
| committer | Xavier Mehrenberger <xavier.mehrenberger@gmail.com> | 2012-03-12 01:35:28 +0100 |
| commit | cb13fbb782d3fda9f2ce20fcffddeb7cdf3a84a8 (patch) | |
| tree | 21f0604a7c3d3ff5b15aec0d8d7e149094776221 /budget/web.py | |
| parent | 757e86baa1ae3b2bc980fc7a1af2a085b702224c (diff) | |
| download | ihatemoney-mirror-cb13fbb782d3fda9f2ce20fcffddeb7cdf3a84a8.zip ihatemoney-mirror-cb13fbb782d3fda9f2ce20fcffddeb7cdf3a84a8.tar.gz ihatemoney-mirror-cb13fbb782d3fda9f2ce20fcffddeb7cdf3a84a8.tar.bz2 | |
Split bills function and basic template.
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 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") |
